[E-Lang] Operators #6: Multiplicative operators
Ben Laurie
ben@algroup.co.uk
Mon, 23 Apr 2001 18:29:00 +0100
"Mark S. Miller" wrote:
>
> At 01:56 PM Tuesday 4/10/01, Bill Frantz wrote:
> >At 10:12 AM -0700 4/10/01, Mark S. Miller wrote:
> >[...] So regarding float64s and
> >>IEEE, E conforms to "the deterministic subset of IEEE supported by standard
> >>pure Java".
> >>
> >>Is there any way in standard pure Java to control the rounding mode?
> >
> >The by now old Java Language Specification says that Java always uses
> >"round to nearest". I think if you need to change the rounding mode, you
> >will have to write in another language.
>
> I believe in the IEEE context, "round to nearest" actually means "round to
> even".
I don't understand what you mean by that - but 1 should round up, of
course (for the same reason 5 does in decimal).
Cheers,
Ben.
--
http://www.apache-ssl.org/ben.html
"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff
ApacheCon 2001! http://ApacheCon.com/