548.705078125 output -> 548705078125
548.705078125
548705078125
What's the best way to do this, not using regex or .replace('.','')?
.replace('.','')
Try this:
Number((548.705078125).toString().split(".").join(""))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!