From WikiChip
Difference between revisions of "mirc/identifiers/$round"
(Created page with "{{mirc title|$round Identifier}}'''$round''' returns a floating point number rounded to a number of decimal. == Synopsis == <pre>$round(N,D)</pre> == Paramters == * '''N''...") |
(→Paramters) |
||
Line 7: | Line 7: | ||
== Paramters == | == Paramters == | ||
− | * '''N''' - The number you want to round | + | * '''N''' - The number you want to round, can be negative. |
− | * '''D''' - The number of decimal to round | + | * '''D''' - The number of decimal to round, this parameter is optional. |
== Properties == | == Properties == |
Revision as of 14:53, 24 October 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$round returns a floating point number rounded to a number of decimal.
Synopsis
$round(N,D)
Paramters
- N - The number you want to round, can be negative.
- D - The number of decimal to round, this parameter is optional.
Properties
None
Example
//echo -a $round(4.98472,3)
Compatibility
Added: mIRC v5.1
Added on: 28 Aug 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.