DEV Community

loading...

Discussion on: What are the most interesting HTML/JS/DOM/CSS hacks that you learn in the year?

Collapse
nomoredeps profile image
NoMoreDeps • Edited

Truncate small numbers without relying to the Js Engine.

2.78 >> 0 // = 2
// massively used in videogame coding
// to avoid half pixel antialiasing
Enter fullscreen mode Exit fullscreen mode
Forem Open with the Forem app