Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jannes
on April 17, 2018
|
parent
|
context
|
favorite
| on:
Dinero.js – JavaScript library for working with mo...
parseInt() and parseFloat() are made for strings, not for numbers. I think you are looking for one of these:
Math.round() Math.ceil() Math.floor()
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Math.round() Math.ceil() Math.floor()