Class Decimal
java.lang.Object
java.lang.Number
java.math.BigDecimal
com.fourjs.report.facturx.Decimal
- All Implemented Interfaces:
Serializable, Comparable<BigDecimal>
Represents the basic Decimal data type described in section 7.1.5, "Data types", of the
Factur-X specification: a decimal number used where no more specific amount, quantity or
percentage type applies, such as the currency conversion rate.
- See Also:
-
Field Summary
Fields inherited from class BigDecimal
ONE, ROUND_CEILING, ROUND_DOWN, ROUND_FLOOR, ROUND_HALF_DOWN, ROUND_HALF_EVEN, ROUND_HALF_UP, ROUND_UNNECESSARY, ROUND_UP, TEN, TWO, ZERO -
Method Summary
Modifier and TypeMethodDescriptionstatic DecimalfromString(String value) Returns aDecimalholding the value parsed from a decimal string; surrounding whitespace is ignored.static DecimalvalueOf(double value) Returns aDecimalholding the given value.static DecimalvalueOf(int value) Returns aDecimalholding the given value.static DecimalReturns aDecimalholding the value parsed from a decimal string; surrounding whitespace is ignored.static DecimalvalueOf(BigDecimal value) Returns aDecimalholding the given value.Methods inherited from class BigDecimal
abs, abs, add, add, byteValueExact, compareTo, divide, divide, divide, divide, divide, divide, divideAndRemainder, divideAndRemainder, divideToIntegralValue, divideToIntegralValue, doubleValue, equals, floatValue, hashCode, intValue, intValueExact, longValue, longValueExact, max, min, movePointLeft, movePointRight, multiply, multiply, negate, negate, plus, plus, pow, pow, precision, remainder, remainder, round, scale, scaleByPowerOfTen, setScale, setScale, setScale, shortValueExact, signum, sqrt, stripTrailingZeros, subtract, subtract, toBigInteger, toBigIntegerExact, toEngineeringString, toPlainString, ulp, unscaledValue, valueOf, valueOfMethods inherited from class Number
byteValue, shortValue
-
Method Details
-
fromString
-
valueOf
Returns aDecimalholding the given value.- Parameters:
value- the value- Returns:
- a
Decimalequal tovalue
-
valueOf
-
valueOf
Returns aDecimalholding the given value.- Parameters:
value- the value- Returns:
- a
Decimalequal tovalue
-
valueOf
Returns aDecimalholding the given value.- Parameters:
value- the value- Returns:
- a
Decimalequal tovalue
-