[m-dev.] ICFP Contest: progress in plan.m
Ralph Becket
rafe at cs.mu.OZ.AU
Mon Jun 30 17:09:30 AEST 2003
I've just tracked down a bug that was causing atan2 to fail.
div wasn't working (I was using Michael's long long approach.)
I have no idea why. But changing to using floats instead
worked like a charm!
Here's the code for dv:
div(fixed(X), fixed(Y)) = fixed(floor_to_int((65536.0 * float(X)) / float(Y))).
-- Ralph
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list