經安全檢測,此網站為安全網站,請放心前往原始網址!

Javascript chop/slice/trim off last character in string - Stack Overflow

I have a string 12345.00 would like it to return 12345.0 I have looked at trim but looks only to trim whitespace and slice which I don't see how this would work. Any suggestions ?

stackoverflow.com

網址安全性掃描由 google 提供