cast from float to long c
snippet in c

cast from float to long c

user9462

float a = 1.0;
long b = (long)a // variable b now equals variable a which has been cast to long