Project

General

Profile

Actions

$round » History » Revision 4

« Previous | Revision 4/5 (diff) | Next »
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.
D - The number of decimals to round to.

Example

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

Updated by Per Amundsen about 6 years ago · 4 revisions

Also available in: PDF HTML TXT