Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Some browsers have round() and sign(), either of which can make it work. It's a pity that defining sign(x) as x/abs(x) breaks down when x = 0, otherwise you could use that since abs(x) = max(-x,x), and max() is supported widely.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: