How to change commas into dots with JavaScript

PHOTO EMBED

Thu Oct 28 2021 04:38:41 GMT+0000 (UTC)

Saved by @karthikbt22 #javascript

let value = '0,32'
value = value.replace(/,/g, '.') 
//value is now '0.32'
content_copyCOPY

to convert comma to dot

https://flaviocopes.com/how-to-comma-dot-javascript/