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 13 Current »

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

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.

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

- [X]

Numbers

Number

Subtracts X from the current value. e.g.: "my:value > -5.6". FROM V2.0.0

* [X]

Numbers

Number

Multiplies the current value by X. Eg "my:value > *2.5".

/ [X]

Numbers

Number

Divides the current value by X. e.g.: "my:value > / 2.5". FROM V2.0.0

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


  • No labels