Class Money

Summary


 This class represents monetary units efficiently stored as integers.

Superclasses:
Error, Object

Package:
util
File:
money.icn
Methods:
get_units, parse, set_units, to_right_string, to_string

Methods inherited from Error:
error, get_reason

Methods inherited from Object:
Type, className, clone, equals, fieldNames, genMethods, getField, get_class, get_class_name, get_id, hasField, hasMethod, hash_code, instanceOf, invoke, is_instance, setField

Fields:
units

Source code.

Details
Constructor

Money(units)

Methods:

get_units()


 Get the base representation, which is an integer


parse(s)


 Set the value from a string.


set_units(n)


 Set the base representation


to_right_string(w)


 Return a right justified string representation.
 @param w  The field width (default 9).


to_string()


 Return a string representation

This method overrides to_string in class Object
Fields:
units


This page produced by UniDoc on 2021/04/15 @ 23:59:53.