$round » History » Revision 4
Revision 3 (Mr. BS, 03/24/2016 10:42 AM) → Revision 4/5 (Per Amundsen, 12/11/2018 08:00 PM)
_Added in 1.8.10_
*$round(N,D)*
Returns the specified floating point number rounded to the Dth decimal digit.
*Parameters*
N - The number to round. _(N is a double)_
D - The number of decimals to round to.
*Example*
<pre>
; Round '3.14159' to '2' decimals.
//echo -ag $round(3.14159,2)
</pre>