Invoice number label on the generated pdf invoice summary document
priceRoundingMode
string (RoundingMode)
Specifies a rounding behavior for numerical operations capable of discarding precision. Default is HALF_UP.
UP = Rounding mode to round away from zero. Always increments the digit prior to a non-zero discarded fraction. Note that this rounding mode never decreases the magnitude of the calculated value. Examples, 5.5 -> 6, 2.6 -> 3, 1.1 -> 2, -1.1 -> -2
DOWN = Rounding mode to round towards zero. Never increments the digit prior to a discarded fraction (i.e., truncates). Note that this rounding mode never increases the magnitude of the calculated value. Examples, 5.5 -> 5, 2.6 -> 2, 1.1 -> 1, -1.1 -> -1
CEILING = Rounding mode to round towards positive infinity. If the result is positive, behaves as for UP, if negative, behaves as for DOWN. Note that this rounding mode never decreases the calculated value. Examples, 5.5 -> 6, 2.6 -> 3, 1.1 -> 2, -1.1 -> -1
FLOOR = Rounding mode to round towards negative infinity. If the result is positive, behave as for DOWN if negative, behave as for UP. Note that this rounding mode never increases the calculated value. Examples, 5.5 -> 5, 2.6 -> 2, 1.1 -> 1, -1.1 -> -2
HALF_UP = Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round up. Behaves as for UP if the discarded fraction is ≥ 0.5; otherwise, behaves as for DOWN. Note that this is the rounding mode commonly taught at school. Examples, 5.5 -> 6, 2.6 -> 3, 1.1 -> 1, -1.1 -> -1
HALF_DOWN = Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round down. Behaves as for UP if the discarded fraction is > 0.5; otherwise, behaves as for DOWN. Examples, 5.5 -> 5, 2.6 -> 3, 1.1 -> 1, -1.1 -> -1
HALF_EVEN = Rounding mode to round towards the "nearest neighbor" unless both neighbors are equidistant, in which case, round owards the even neighbor. Behaves as for HALF_UP if the digit to the left of the discarded fraction is odd; behaves as for HALF_DOWN if it's even. Note that this is the rounding mode that statistically minimizes cumulative error when applied repeatedly over a sequence of calculations. It is sometimes known as "Banker's rounding," and is chiefly used in the USA. Examples, 5.5 -> 6, 2.6 -> 2, 1.1 -> 1, -1.1 -> -1