The number object represents a numeric value and includes arithmetical functions and a function to convert to a string type
Name | Description | 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 | Integer | ||
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 | Integer | ||
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 | ||