Javascript – Parsing float

ShaunJavascript0 Comments

Javascript development

Javascript

Parse Float with commas

When dealing with calculations around pricing, it is important to ensure when usingĀ parseFloat in JavaScript that it doesn’t malform the result.

The function below checks your number if it contains commas, strips them out, …