Game Development Community

TGB modulo question

by Nicolas Stohler · in Torque Game Builder · 06/20/2006 (11:57 am) · 1 replies

TGB RC3:

in console, execute:
echo( 32.5 % 360 );
output: 32

I expected 32.5... why does the .5 get cut of? or is there a float modulo function available?

--
nicolas

#1
06/20/2006 (1:46 pm)
I asked the same questions:
www.garagegames.com/mg/forums/result.thread.php?qt=46135

Could find a "script" float modulo but I posted my temp workaround