Number Formatting
Number Formatting blocks perform formatting operations on numbers.
The following are accepted and excluded arguments for Number Formatting blocks:
- Numbers, logical values, and numbers represented as strings are accepted.
- Error values, and text that cannot be resolved to numbers, cause a NaN error result to be returned.
Block | Icon | Description |
---|---|---|
Absolute | Returns the absolute value of a number | |
Bound | Returns the value of a number within the defined minimum and maximum | |
Round | Rounds a number using a specified precision | |
Round Up | Rounds a number up using the specified precision | |
Round Down | Rounds a number down using the specified precision | |
Gradient Mapping | Correlates a number range to a color gradient and returns an output color that corresponds to an input number | |
Format Number | Returns a number or string based on defined formatting criteria | |
Parse Number | Returns a number parsed out of a string |