|Re: Bug in conversions in RC3 [message #902617 is a reply to message #900047]
||Sat, 18 August 2012 18:11
| Werner Keil
Registered: July 2009
Thanks a lot for spotting that.|
Could you create a Bugzilla entry if you have a working account for that?
If I don't find it soon, I may convert your forum post into a Bugzillla
And try reproduce, beside covering a Unit Test for that once it can be
The only way to build UOMo at the moment is by using Tycho and include ICU4J
beside its (still relatively few;-) dependencies.
There are alternate Unit-API implementations, especially JScience 5 on their
way which use a slightly differrent stack. Since unit systems like SI
largely depend on implementations of the Unit and Quantity core types, those
will most likely remain implementation dependent.
As soon as Java Standards especially JSR 354 or 310 become available and
mature, there could be different implementations at least for UOMo Business,
but at the moment, the ICU stack is the best to use on the Java Platform.
"Brent Clark" <forums-noreply@xxxxxxxx> schrieb im Newsbeitrag
> Using rc3, unit conversions appear to lose precision as illustrated below.
> LengthAmount x = new LengthAmount(1.0001, SI.Prefix.KILO(SI.METRE));
> IMeasure<Length> xi = x.to(SI.METRE);
> System.out.println("x="+x+" xi="+xi);
> // Results in: x=1.0001 km xi=1000.0 m
> This is a pretty basic feature and, if it is really broken, then rc3 isn't
> Has this been fixed since RC3? If so can this be released? Or can the jars
> (and source jars) be made available somewhere? We are only using units and
> core jars and it seems excessive to have to get the eclipse build
> environment working.
Powered by FUDForum
. Page generated in 0.04096 seconds