11.07.2013, 09:55
How come after I use the floatround it converts 5.4 to some weird number?
Thanks
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));