_num = _num - _num (_num mod 1)The above line will return the remainder of _num.
So if _num is 1.357, it will, after using the above line, be just 1.
Or if _num is 99.1, _num will become just 99.
Using format, this is the correct syntax:
hint format ["First: %1\nSecond: %2\nThird: %3",_num1,_num2,_num3]That will display the three variables _num1, _num2 and _num3 in a hintbox.
\n is an escape character for a linebreak, so each number will be on it's own line in the hint.
It's very possible to do evaluations inside the format command, like so:
hint format ["Classname: %1",typeOf vehicleName]But if you will send many things into the format command, I recommend doing all the necessary evaluations and calculations beforehand, like so:
_class = typeOf vehicleName
hint format ["Classname: %1",_class]
Now, I'm not sure what kind of maths you'd use to accomplish this, so I leave that up to more talented people