From WikiChip
Difference between revisions of "mirc/identifiers/$ceil"
m (Bot: Adding a template (template:mIRC identifier list)) |
(→Parameters) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | The '''$ceil''' identifier will calculate and return a numerical value rounded to the next highest integer. | + | {{mirc title|$ceil Identifier}}The '''$ceil''' identifier will calculate and return a numerical value rounded to the next highest integer. |
+ | |||
== Synopsis == | == Synopsis == | ||
Line 5: | Line 6: | ||
== Parameters == | == Parameters == | ||
− | + | ||
− | + | * '''N''' - The number to be rounded up. Decimals cause the value to round up, while integers are returned the same. | |
− | + | ||
+ | You can use the letter 'e' or 'd' as *10^N, $ceil(5e6) = $ceil($calc(5*10^6)) | ||
== Example == | == Example == | ||
Line 14: | Line 16: | ||
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|6.1}} | |
− | |||
− | |||
== See Also == | == See Also == | ||
− | * | + | * {{mIRC|$abs}} |
− | * | + | * {{mIRC|$acos}} |
− | * | + | * {{mIRC|$asin}} |
− | * | + | * {{mIRC|$atan}} |
− | * | + | * {{mIRC|$base}} |
− | * | + | * {{mIRC|$calc}} |
− | * | + | * {{mIRC|$cos}} |
− | * | + | * {{mIRC|$floor}} |
− | * | + | * {{mIRC|$sin}} |
− | * | + | * {{mIRC|$tan}} |
{{mIRC identifier list}} | {{mIRC identifier list}} | ||
− | [[Category: | + | [[Category:mIRC identifiers|ceil]] |
Latest revision as of 19:40, 13 August 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The $ceil identifier will calculate and return a numerical value rounded to the next highest integer.
Synopsis[edit]
$ceil(N)
Parameters[edit]
- N - The number to be rounded up. Decimals cause the value to round up, while integers are returned the same.
You can use the letter 'e' or 'd' as *10^N, $ceil(5e6) = $ceil($calc(5*10^6))
Example[edit]
Echo to the active window 3.14 rounded to the next highest integer:
//echo -a $ceil(3.14)
Compatibility[edit]
Added: mIRC v6.1
Added on: 29 Aug 2003
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also[edit]
mIRC identifier list