Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.
Florian Rappl edited this page Dec 21, 2014 · 2 revisions

format

Sets the output formatting of numeric values to a certain pre-defined style.

format()

Returns the currently used output format.

Returns 1. entry

String

format(type)

Changes the current output format to the given style.

Argument type

String

Returns 1. entry

Void

Example

format("default")

The default style outputs as many digits as possible, however, only with the given precision.

Example

format("scientific")

The scientific style outputs as many digits up to the given precision with an exponential notation beyond.

Example

format("engineering")

The engineering style outputs as many digits up to the given precision with an exponential notation used in the orders of 3, i.e. coming from exactly zero with ..., e-6, e-3, e0, e3, e6 and so on.

Clone this wiki locally