var a = ~~b;var a = b;var a = Math.floor(b); ?Math.floor() works twice as fast (checked in FF3.6).~~$x for rounding works in Pearl, and the time is the same as int($x) . Interesting in other languages? In Python, probably work too? Upd: did not work.Source: https://habr.com/ru/post/89785/
All Articles