Hey all.
While working on a project, I came across a js-script created by a former employee that basically creates a report in the form of
Name : Value Name2 : Value2 etc...
Problem for me though, is that the values can sometimes be floats (with different precision), integers, or even in the form "2.20011E+17"
What I outputted though are pure integers. I don't know a lot of javascript though.
How would I go about writing a method that takes these sometimes-floats and makes them integers?