Number to Exponential String
- Updated2023-02-17
- 3 minute(s) read
Number to Exponential String
Converts a numeric value to a string in E-format (exponential notation).

Inputs/Outputs

number
A number to be converted into a string.
This input can also be any data type that contains only numbers, such as an array of numbers or a cluster of numbers.

width
A number specifying how many characters to use to express number as a string.
If width is less than the number of characters required, this node uses exactly as many characters as needed. If width is greater than the number of characters required, this node adds a space on the left side of the output string for each additional character.
Default value: No value — Exactly as many characters as are needed to represent the number, with no extra padding.

precision
A number specifying the number of digits after the decimal point in the output string. The node rounds number to this decimal place.
Default value: 0

use system decimal point?
Boolean specifying whether to use the system decimal separator to designate a decimal point.
True | This node uses the localized decimal separator. |
False | This node uses a period as the decimal separator. |
Default value: FALSE

exponential format string
number represented as a string in exponential format.
Examples
number | width | precision | exponential format string | Comments |
---|---|---|---|---|
4.911 | 5 | 2 | 4.91e0 | number is rounded, width is extended. |
.003926 | 10 | 2 | _ _ _3.93e-3 | number is rounded, padded with spaces on the left. |
216.01 | 5 | 0 | _ _2e2 | number is rounded, padded with spaces on the left. |