You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

The number object represents a numeric value and includes arithmetical functions and a function to convert to a string type

Name and ParametersDescriptionReturn TypeUsage Examples
Add(number x)Adds the specified number to the current number and returns the resultNumber

Ceiling()Returns the smallest integer greater than or equal to the current decimal numberInteger


Decrement()Decrements the current number by oneNumber


Divide(number x)Divides the current number by the specified number and returns the resultNumber


Floor()Returns the largest integer less than or equal to the current decimal numberInteger


Increment()Increments the current number by oneNumber


IntegerDivide(integer x)Divides the current integer by the specified integer and returns an integer resultInteger


Modulus(number x)Returns the remainder after dividing the current number by the specified numberInteger


Multiply(number x)Multiplies the current number by the specified number and returns the resultNumber


Round()Rounds the current decimal number to the nearest integerInteger


Subtract(number x)Subtracts the specified number from the current number and returns the resultNumber


ToString()Parses current number to a string, allowing string operations and functionsString






  • No labels