SigServer:SignatureMath: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
abs(1); // Returns 1 | abs(1); // Returns 1 | ||
abs(-1); // Returns 1 | abs(-1); // Returns 1 | ||
==== ceil ==== | |||
''number'' ceil(''number'' value); | |||
Returns the ceiling of a number. | |||
'''Example''' | |||
ceil(1.4); // Returns 2 | |||
ceil(1.9); // Returns 2 | |||
==== floor ==== | |||
''number'' floor(''number'' value); | |||
Returns the floor of a number. | |||
'''Example''' | |||
floor(1.1); // Returns 1 | |||
floor(1.9); // Returns 1 |
Revision as of 18:03, 2 December 2007
Function Reference
Mathematical
abs
number abs(number value);
Returns the absolute value of a number
Example
abs(1); // Returns 1 abs(-1); // Returns 1
ceil
number ceil(number value);
Returns the ceiling of a number.
Example
ceil(1.4); // Returns 2 ceil(1.9); // Returns 2
floor
number floor(number value);
Returns the floor of a number.
Example
floor(1.1); // Returns 1 floor(1.9); // Returns 1