Project

General

Profile

Actions

$round » History » Revision 3

« Previous | Revision 3/5 (diff) | Next »
Mr. BS, 03/24/2016 10:42 AM


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

; Round '3.14159' to '2' decimals.
//echo -ag $round(3.14159,2)

Updated by Mr. BS over 8 years ago · 3 revisions

Also available in: PDF HTML TXT