DecimalDomain
class in io.proptastic
class DecimalDomainExact decimals, BigDecimals: decimals().atLeast(BigDecimal.ZERO).places(2). A
scale, the places after the point, from 0 to .places(n)’s most (10 unless said), then an
unscaled whole number in one 64-bit choice, zigzagged from zero as integers are; so a
counterexample shrinks toward fewer places, then toward zero, or the bound nearest it. About one
try in five is an edge: zero at the most places, a tie halfway between two values, a value at the
most places, or the drawn value at one place more, equal but not the same (decision 82).
Methods
atLeast
DecimalDomain atLeast(BigDecimal value)value or more.
atMost
DecimalDomain atMost(BigDecimal value)value or less.
greaterThan
DecimalDomain greaterThan(BigDecimal value)More than value.
lessThan
DecimalDomain lessThan(BigDecimal value)Less than value.
places
DecimalDomain places(int most)At most most places after the point: .places(2) for cents.