Search code snippets, questions, articles... Chrome Extension

Remove decimal points in numbers

Math.trunc(inputnumber) //truncate fractional part, also see below
Math.floor(inputnumber) //round down
Math.ceil(inputnumber) //round up
Math.round(inputnumber) //round to nearest integer
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

Search Index Data (The code snippet can also be found with below search text)

Round off
Remove decimal point
Was this helpful?
Join Devsheet Ask a Question