On 2007-12-13, at 15:50 EST, Lars T Hansen wrote: > My beef with ECMAScript at this point is that it has no integer divide > operator and no easy way to signal to the implementation that that's > what desired. In practice, "/" forces us into floating point.
Couldn't this be fixed upward-compatibly by adding an optional second argument to floor, ceiling, round, and truncate the way Lisp and [Dylan](http://www.opendylan.org/books/drm/Arithmetic_Operations#HEADING-100-124 ) do? Surely: var int x = int(y) / int(z); also signals that an integer divide is desired (although the desired rounding mode is is unclear). _______________________________________________ Es4-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es4-discuss
