Skip to end of banner
Go to start of banner

Number Supplier

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Overview

Provides information about numbers.

Details

Name:

Number Supplier

Prefix:

number(optional)

Supported Content:

Numbers

Provided By:

Reporting for Confluence, 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

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. 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

Boolean

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

less than [X]

Numbers

Boolean

(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

Boolean

(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

Date

(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

Text

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

  • No labels