Integer long division: Difference between revisions

Content added Content deleted
(Added Perl)
m (→‎{{header|Phix}}: Use proper English)
Line 243: Line 243:


=={{header|Phix}}==
=={{header|Phix}}==
Translation of the python code linked to by the Wren entry, modified to cope with negatives.
Translation of the Python code linked to by the Wren entry, modified to cope with negatives.
<!--<lang Phix>(phixonline)-->
<!--<lang Phix>(phixonline)-->
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span>
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span>
Line 289: Line 289:
<!--</lang>-->
<!--</lang>-->
{{out}}
{{out}}
64 bit, not surprisingly the last example is inaccurate past 16 significant digits on 32 bit (ditto p2js), and hence omitted.
The results below are on 64 bit, not surprisingly the last example is inaccurate past 16 significant digits on 32 bit (ditto p2js), and hence omitted.
<pre>
<pre>
0/1 = 0
0/1 = 0