%Library.Currencydatatype class %Library.Currency
ODBC Type: NUMERIC
The %Currency data type class represents a currency value.
%Currency is essentially the same as the
Used for enumerated (multiple-choice) attributes. Used in conjunction with the VALUELIST parameter for enumerated (multiple-choice) attributes. DISPLAYLIST, if not null, represents the display values for the attribute corresponding with the logical values listed in VALUELIST.
The display values are returned by the LogicalToDisplay method.
The format specification for the data type's display value.
The value of FORMAT corresponds to the formatting option of the
$FNUMBERfunction, which is used to perform the formatting.
The maximum allowed logical value for the data type.
The minimum allowed logical value for the data type.
Used for enumerated (multiple-choice) attributes. VALUELIST is either a null string ("") or a delimiter separated list (where the delimiter is the first character) of logical values. If a non-null value is present, then the attribute is restricted to values in the list, and the validation code simply checks to see if the value is in the list.
Declares the XSD type used when projecting XML Schemas.
Converts the input value %val, which is a string representing a currency value, into a logical currency value.
Returns the value of the input string %val as a currency (fixed point number).
Tests if the logical value %val, which is a currency value, is valid. The validation is based on the class parameter settings used for the class attribute this data type is associated with. In this case, MAXVAL and MINVAL.
Converts the value of %val, which is in currency format, into a display string.
Returns the formatted value of %val.
Converts the Objectscript value to the JSON number value.
Converts %val to a normalized value.
Converts the SOAP encoded input decimal value into a %Currency value. Returns "" for error.