toNumber

Description

Any number or text is converted to number type.

Input / Parameter

Output

Example

In this example, we will convert a string to number and print the result in the console.

Step

  1. Call the function Conversion.toNumber inside the Log.write function.

  2. Enter the value for the Conversion.toNumber function. In this example, we will enter 12.

Result

  1. The console will print 12.

Last updated