Summary
Provides information about numbers.
Details
| Name: | Number Supplier |
|---|---|
| Prefix: | number (optional) |
| Supported Content: | Numbers |
| Provided By: | Reporting Plugin, from version 1.3 |
Keys Supported
The following are the list of keys which this supplier will return a value for.
| Key | Content Types | Return Type | Description |
|---|---|---|---|
| type | Numbers | Text | The name of the number type (Integer, Double, etc). |
| is whole | Numbers | Boolean | Returns true if the number is a 'whole' number, or an integer. That is, it does not have any decimal places. |
| is decimal | Numbers | Boolean | Returns true if the number has a decimal point. |
| is nan | Numbers | Boolean | (Since 2.0.0) Is true if the current value is not a valid number. |
| + [X] | Numbers | Number | (Since 2.0.0) Adds X to the current value. Eg "my:value > +10". |
| - [X] | Numbers | Number | (Since 2.0.0) Subtracts X from the current value. Eg "my:value > -5.6" |
| * [X] | Numbers | Number | (Since 2.0.0) Multiplies the current value by X. Eg "my:value > *2.5" |
| / [X] | Numbers | Number | (Since 2.0.0) Divides the current value by X. Eg "my:value > / 2.5". |
| mod [X] | Numbers | Number | (Since 2.0.0) Outputs the 'mod' value of two numbers. Eg, if "my:value" is currenlty 5, "my:value > mod 3" will return "2". |
| equals [X] | Numbers | Boolean | (Since 2.0.0) Compares the current number with the supplied number. Eg "my:value > equals 5". |
| less than [X] | Numbers | Boolean | (Since 2.0.0) Is true if the current number is less than X. Eg "my:value > less than 100". |
| greater than [X] | Numbers | Boolean | (Since 2.0.0) Is true if the current value is greater than X. Eg "my:value > greater than 1.5". |
| abs | Numbers | Number | (Since 3.3.0) Outputs the absolute (or positive) value of the supplied number. |
| number format | Numbers | Text | All other values are interpreted as formatted numbers. Eg:
"#,##0.00" will return a text string with at least one value before the decimal point, two after, and every 3rd digit will have a comma separator. |
Discussions