PEP0238 lament
Tim Peters
tim.one at home.com
Mon Jul 23 03:26:52 EDT 2001
[]Stephen Horne]
> ...
> And what about the languages web developers are used to, such as
> VBScript and JavaScript.
Good thing you stopped before mentioning Perl (yes, 1/2 is 0.5 there) -- I'm
afraid the "mimic other languages" approach requires picking languages very
carefully if you want the illusion of consistency. By the way, 1/2 is also
0.5 in standard JavaScript:
http://www.el-mundo.es/internet/ecmascript.html
11.5.2 Applying the / operator
The / operator performs division, producing the quotient of
its operands. The left operand is the dividend and the right
operand is the divisor. ECMAScript does not perform integer
division. The operands and result of all division operations
are double-precision floating-point numbers. The result of
division is determined by the specification of IEEE 754
arithmetic:
yadda yadda yadda
produce-enough-frantic-arguments-at-random-and-some-are-likely-
to-backfire<wink>-ly y'rs - tim
More information about the Python-list
mailing list