Java Integer to Float convertIntToFloat(int arr[])

Here you can find the source of convertIntToFloat(int arr[])

Description

convert Int To Float

License

Open Source License

Declaration

public static float[] convertIntToFloat(int arr[]) 

Method Source Code

//package com.java2s;
/*/*from   ww w  . j  ava  2  s .c o m*/
 * Copyright 2005, 2009 Cosmin Basca.
 * e-mail: cosmin.basca@gmail.com
 * 
 * This is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2.1
 * of the License, or (at your option) any later version.
 *
 * Please see COPYING for the complete licence.
 */

public class Main {
    public static float[] convertIntToFloat(int arr[]) {
        float array[] = new float[arr.length];

        for (int i = 0; i < array.length; i++)
            array[i] = arr[i];

        return array;
    }
}

Related

  1. convertIntToFloat(final int[] intValues)
  2. intToFloat(int integer)
  3. intToFloat(int[] values)
  4. IntToFloat(long x)
  5. intToFloatArray(int[] ints)