(final int prec, final RoundMode mode)
| 96 | } |
| 97 | |
| 98 | @Override |
| 99 | public Flt round(final int prec, final RoundMode mode) { |
| 100 | if(value == 0 || Float.isNaN(value) || Float.isInfinite(value)) return this; |
| 101 | final float f = Dec.round(BigDecimal.valueOf(value), prec, mode).floatValue(); |
| 102 | return f == 0 && Float.floatToRawIntBits(value) < 0 ? NEGATIVE_ZERO : |
| 103 | f == value ? this : Flt.get(f); |
| 104 | } |
| 105 | |
| 106 | @Override |
| 107 | public int compare(final Item item, final Collation coll, final boolean transitive, |