Brendan Eich (2013-07-25T19:00:17.000Z)
Michael Haufe wrote:
> In 2008 I first proposed the addition of an integer division operator 
> to the language. At the time Brendan noted his regret for this 
> oversight and desire for the operator as well. I am not seeing this 
> operator available in the current draft. Can/will this be rectified?
>
> a div b = (a - a % b) / b

This turns out to be equivalent to

  (a/b)|0


which is how asm.js optimizes to avoid the FPU already.

/be
domenic at domenicdenicola.com (2013-07-25T19:56:07.806Z)
This turns out to be equivalent to

```js
(a/b)|0
```

which is how asm.js optimizes to avoid the FPU already.