I was originally thinking statRound, but maybe not.
The round function performs financial-style rounding. If the number is exactly halfway between two numbers, round always rounds the number up if positive, down if negative. (To round off numbers without introducing any statistical upward bias, use the statRound function instead.)
What about an if/then setup, like -
Code: Select all
if the last character of tNum < 5 then
put 5 into the last character of tNum
else
put 0 into the last character of tNum
end if
*Edited because I just realized you might only have 1 or 2 digits *doh*
*Edit 2, scrub that, I just realized a lot of flaws could occur without checking previous digits. Of course, you *could* add checks to see how many digits there actually are
