Prints returning weird int values converted from floats.
#1

How come after I use the floatround it converts 5.4 to some weird number?

Code:
Print of Float- SmallZoneInf[z][x+2] = 5.40
Print of Int = 1085066496

printf("SmallZoneInf[z][x+2] = %0.2f", SmallZoneInf[z][x+2]);
printf("result = %d", floatround(SmallZoneInf[z][x+2], floatround_round));
Thanks
Reply


Messages In This Thread
Prints returning weird int values converted from floats. - by Kyle - 11.07.2013, 09:55
Re: Prints returning weird int values converted from floats. - by Misiur - 11.07.2013, 10:20
Re: Prints returning weird int values converted from floats. - by ReVo_ - 11.07.2013, 10:24
Re: Prints returning weird int values converted from floats. - by Kyle - 11.07.2013, 10:32

Forum Jump:


Users browsing this thread: 1 Guest(s)