Easy Math Question - Rounding and Decimals
by Nicolai Dutka · in Torque Game Engine · 10/13/2007 (2:58 pm) · 3 replies
I just want this to ALWAYS return a whole integer:
( 1 + (%rand1 / 100) ) * 180;
Right now, all I get is decimals because of the percentage multiplier.
( 1 + (%rand1 / 100) ) * 180;
Right now, all I get is decimals because of the percentage multiplier.
Torque 3D Owner Peter Simard
Default Studio Name