This function always rounds numbers down to a complete integer.
The following example truncates 2.7147 to 2.00.
static void truncExample(Args _arg)
{
real r;
;
r = trunc(2.7147);
print strFmt("r = %1", r);
pause;
}
This function always rounds numbers down to a complete integer.
The following example truncates 2.7147 to 2.00.
static void truncExample(Args _arg)
{
real r;
;
r = trunc(2.7147);
print strFmt("r = %1", r);
pause;
}