Decimal arithmetic
Copyright (c) IBM Corporation, 2000. All rights reserved. © | 11 Jan 2000 |
[previous | contents | next] |
Returns a non-negative int which is the value of the digits setting of the MathContext object.
Returns an int which is the value of the form setting of the MathContext object. This will be one of ENGINEERING, PLAIN, or SCIENTIFIC.
Returns a boolean which is the value of the lostDigits setting of the MathContext object.
Returns an int which is the value of the roundingMode setting of the MathContext object. This will have the value of one of the public constants whose name starts with ROUND_.
Returns a String representing the settings of the MathContext object as four blank-delimited words separated by a single blank and with no leading or trailing blanks, as follows:
digits=9 form=SCIENTIFIC lostDigits=0 roundingMode=ROUND_HALF_UPAdditional words may be appended to the result of toString in the future if more properties are added to the MathContext class.