Number Functions and Properties
In this Page
toExponential
Description | Returns a string representing the Number object in exponential notation. This is similar to the JavaScript .toExponential(). |
---|---|
Syntax | object.toExponential(optdigits) where optdigits is an optional integer to specify the number of digits to appear after the decimal point. |
Example | Expression: Result: 7.650264534953171e-1 Expression: Result: 7.65e-1 |
toFixed
Description | Returns a string representing the Number object using fixed-point notation. This is similar to the JavaScript .toFixed(). |
---|---|
Syntax | object.toFixed(optdigits) where optdigits is an optional integer to specify the number of digits to appear after the decimal point. |
Example | Expression: Result: If $Number is equal to 0.89473, the result is 1. |
toPrecision
Description | Returns a string representing the Number object to the specified precision. This is similar to the JavaScript .toPrecision(). |
---|---|
Syntax | object.toPrecision(number) |
Example | Expression: Result: If $Number is equal to 4.2103, the result is 4.2.
|
Have feedback? Email documentation@snaplogic.com | Ask a question in the SnapLogic Community
© 2017-2024 SnapLogic, Inc.