I need value to return the full number to me: 249.87. But using parseFloat ()
or parseInt ()
always returns 249.
How can I get the full number back? Has as?
string = '249.87'
value = parseFloat (string)
console.log (value) // Return number 249.