The following fails seemingly due to loss of precision over the RationalConverters switching between long/doubles.
val value = new Long(1548351392775L);
val mili = NumberQuantity.of(value, MetricPrefix.MILLI(SECOND));
val nanoLong = mili.to(MetricPrefix.NANO(SECOND)).getValue().longValue();
assertEquals(value * 1000000, nanoLong);
Is there a different pattern which should be followed for big longs?
The following fails seemingly due to loss of precision over the RationalConverters switching between long/doubles.
Is there a different pattern which should be followed for big longs?