View Single Post
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-26-2017 , 17:32   Re: int array to float array from function
Reply With Quote #6

Code:
public void int2float(const int[] array, float[] out, int count)
{
	for (int i = 0; i < count; i++)
	{
		out[i] = float(array[i]);
	}
}
Code:
stock float[] int2float(const int[] array, int count)
{
	float[] out = new float[count];
	for (int i = 0; i < count; i++)
	{
		out[i] = float(array[i]);
	}
	return out;
}
__________________

Last edited by Neuro Toxin; 07-26-2017 at 17:37.
Neuro Toxin is offline