Number Supplier

Overview

Provides information about numbers.

Details

Name:

Number Supplier

Prefix:

number

(optional)

Supported Content:

Numbers

Provided By:

Reporting, from version 1.3

Supported Keys

The following are the list of keys which this supplier will return a value for.

Key

Content Types

Return Type

Description

type

Numbers

The name of the number type (Integer, Double, etc).

is whole

Numbers

Returns true if the number is a 'whole' number, or an integer. That is, it does not have any decimal places.

is decimal

Numbers

Returns true if the number has a decimal point.

is nan

Numbers

(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. e.g.: "my:value > + 10".

- [X]

Numbers

Number

(Since 2.0.0) Subtracts X from the current value. e.g.: "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. e.g.: "my:value > / 2.5".

mod [X]

Numbers

Number

(Since 2.0.0) Outputs the 'mod' value of two numbers. e.g.: if "my:value" is currently 5, "my:value > mod 3" will return "2".

equals [X]

Numbers

(Since 2.0.0) Compares the current number with the supplied number. e.g: "my:value > equals 5".

less than [X]

Numbers

(Since 2.0.0) Is true if the current number is less than X. e.g.: "my:value > less than 100".

greater than [X]

Numbers

(Since 2.0.0) Is true if the current value is greater than X. e.g. "my:value > greater than 1.5".

abs

Numbers

Number

(Since 3.3.0) Outputs the absolute (or positive) value of the supplied number.

to date

Numbers

(Since 3.4.0) Converts the number to a date value, using the number as the number of milliseconds since January 1, 1970, UMT.

number format

Numbers

All other values are interpreted as formatted numbers. e.g.:"#,##0.00" will return a text string with at least one value before the decimal point, two after, and every 3rd digit