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

Just one more quick tip, you should probably use the unary operator "+" to convert strings to float. `parseFloat('2,000')` gives 2, which is probably not expected, while `+'2,000'` gives NaN indicating the input format is not recognized.


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

Search: