SuperCollider FP succeeds where Google fails

View: New views
1 Messages — Rating Filter:   Alert me  

SuperCollider FP succeeds where Google fails

by James Harkins-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So there's a "Google Fail" making the rounds... search Google for
"399999999999999 - 399999999999998" and it will confidently tell you
the answer is 0.

SC integer arithmetic does the same thing (odd b/c I thought it
dropped most significant bits, but it seems to drop LSBs...?) but
anyway... our floats are better than their floats!

In SC:
399999999999999.0 - 399999999999998.0
--> 1

64 bits to the rescue!

hjh


--
James Harkins /// dewdrop world
jamshark70@...
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

_______________________________________________
sc-users mailing list

info (subscribe and unsubscribe): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
LightInTheBox - Buy quality products at wholesale price!