P T Withington
ptw at pobox.com
Fri Dec 14 04:20:31 PST 2007
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
var int x = int(y) / int(z);
also signals that an integer divide is desired (although the desired
rounding mode is is unclear).
More information about the Es4-discuss