Number Supplier

Overview

Provides information about numbers.

Details

Name:

Number Supplier

Prefix:

number(optional)

Supported Content:

Numbers

Provided By:

Reporting for Confluence FROM v1.3

Supported Keys

List of keys that this supplier returns a value for.

Key

Content Types

Return Type

Description

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.

Returns true if number does not have any decimal places.

is decimal

Numbers

Boolean

Returns true if the number has a decimal point.

is nan

Numbers

Boolean

Is true if the current value is not a valid number.FROM v2.0.0

+ [X]

Numbers

Number

Adds X to the current value. FROM v2.0.0

For example

  • "my:value > + 10"

- [X]

Numbers

Number

Subtracts X from the current value. FROM v2.0.0

For example

  • "my:value > -5.6"

* [X]

Numbers

Number

Multiplies the current value by X.

For example

  • "my:value > *2.5"

/ [X]

Numbers

Number

Divides the current value by X. FROM v2.0.0

For example

  • "my:value > / 2.5"

mod [X]

Numbers

Number

Outputs the 'mod' value of two numbers. FROM v2.0.0
For example

  • if "my:value" is currently 5, "my:value > mod 3" will return "2"

equals [X]

Numbers

Boolean

Compares the current number with the supplied number.FROM v2.0.0

For example

  • "my:value > equals 5"

less than [X]

Numbers

Boolean

Is true if the current number is less than X. FROM v2.0.0

For example

  • "my:value > less than 100"

greater than [X]

Numbers

Boolean

Is true if the current value is greater than X. FROM v2.0.0

For example

  • "my:value > greater than 1.5"

abs

Numbers

Number

Outputs the absolute (or positive) value of the supplied number. FROM v3.3.0

to date

Numbers

Date

Converts the number to a date value, using the number as the number of milliseconds since January 1, 1970, UMT. FROM v3.4.0

number format

Numbers

Text

All other values are interpreted as formatted numbers.

For example

  • "#,##0.00" will return a text string with at least one value before the decimal point, two after, and every 3rd digit