Skip to main content
Version: v0.0.3

Function: telecomQuantity()

telecomQuantity(source): TelecomQuantity

Wrap a verbatim Quantity Dispensed value as a TelecomQuantity, applying the implied 3-place decimal string-wise when the value is all digits.

Parameters

source

string

The quantity exactly as it appeared on the wire.

Returns

TelecomQuantity

A frozen TelecomQuantity.

Example

telecomQuantity("30000").impliedDecimal; // "30.000"