PDA

View Full Version : Restrict Float to 1 decimal


sssssssssss
01-01-2014, 03:22 PM
Is there a way to do this on Graal? I've looked, but maybe I missed something...

sssssssssss
01-01-2014, 04:05 PM
http://forums.graalonline.com/forums/showthread.php?t=81277

never mind. Keeping this here for others when searching.

callimuc
01-01-2014, 09:48 PM
Or you can do it like
temp.number = int(10.25*10)/10; //returns 10.2