title: Fastest way to cast a float to an int in javascript?
body: <p>Let's say I have <code>x = 12.345</code>. In javascript, what function <code>floatToInt(x)</code> has the fastest running time such that <code>floatToInt(12.345)</code> returns <code>12</code>?</p>