The number object represents a numeric value and includes arithmetical functions and a function to convert to a string type
Parameters | Return Type | Usage Examples |
---|
Add(number x) | Adds the specified number to the current number and returns the result | number |
|
|
Ceiling() | Returns the smallest integer greater than or equal to the current decimal number | number |
|
|
Decrement() | Decrements the current number by one | number |
|
|
Divide(number x) | Divides the current number by the specified number and returns the result | number |
|
|
Floor() | Returns the largest integer less than or equal to the current decimal number | integer |
|
|
Increment() | Increments the current number by one | number |
|
|
IntegerDivide(integer x) | Divides the current integer by the specified integer and returns an integer result | integer |
|
|
Modulus(number x) | Returns the remainder after dividing the current number by the specified number | number |
|
|
Multiply(number x) | Multiplies the current number by the specified number and returns the result | number |
|
|
Round() | Rounds the current decimal number to the nearest integer | integer |
|
|
Subtract(number x) | Subtracts the specified number from the current number and returns the result | number |
|
|
ToString() | Parses current number to a string, allowing string operations and functions | string |
|
|
|
|
|
|
|