public final class JICurrency extends Object
for example :-
If the absolute value of the fractional part is greater than 10,000, the
appropriate adjustment is made to the units, as shown in the third of the
following examples.
Note that the units and fractional part are specified by signed long values. The fourth of the following examples shows what happens when the parameters have different signs.
COleCurrency curA; // value: 0.0000
curA.SetCurrency(4, 500); // value: 4.0500
curA.SetCurrency(2, 11000); // value: 3.1000
curA.SetCurrency(2, -50); // value: 1.9950
| Constructor and Description |
|---|
JICurrency(int units,
int fractionalUnits) |
JICurrency(String value) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFractionalUnits()
Returns the fractionalUnits value.
|
int |
getUnits()
Returns the units value.
|
public JICurrency(String value)
public JICurrency(int units,
int fractionalUnits)
Copyright © 2022. All rights reserved.