Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Rounding Function (Read 3276 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Rounding Function

What functions can I use to round a number like 29.949 to 30.0, or from 12.680 to 12.7?

 

Rounding Function

Reply #1
$num(%field%,1) will round to integer
you should probably use $replace(%field%,.,) then $left() plus $add(,5) somewhere in between to do the rounding