Why does integer division round down in many scripting languages? – stackoverflow.com

In the languages I have tested, - (x div y ) is not equal to -x div y; I have tested // in Python, / in Ruby, div in Perl 6; C has a similar behavior. That behavior is usually according to spec, ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why does integer division round down in many scripting languages? – stackoverflow.com"