Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: 64-bit division anomolies (Solved.)

by salva (Canon)
on Feb 17, 2015 at 10:07 UTC ( #1116960=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s1 = ((a / 2) / b) * 2;
    
  2. or download this
    s = s1 + (a - s1 * b) / b
    
  3. or download this
    s2 = (a / 2) / b
    s1 = s2 * 2
    s = s1 + (a - s1 * b) / b
    s = s2 * 2 + (a - (s2 * b) * 2) / b
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1116960]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2023-09-23 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?