Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

backOpen Source→string-remove-thousand-separators→Examples

Permalink to Table of ContentsTable of Contents

  • Quick Take
  • Convert decimal commas while retaining grouping separators
  • Pad a single decimal digit while removing thousand separators
  • Leave a single decimal place unpadded
  • Convert a comma decimal separator to a dot
  • Remove spaced thousand separators when no decimal separator is present
  • Keep thousand separators while still normalising the outer quotes
  • Leave a value unchanged when it contains non-numeric text
  • Preserve a number whose separators are ambiguous
  • Pad one-digit fractions without losing precision
  • Remove spaces used as thousand separators
  • Remove apostrophes used as thousand separators
↑ back to top

Permalink to Quick TakeQuick Take

↑ back to top

Permalink to Convert decimal commas while retaining grouping separatorsConvert decimal commas while retaining grouping separators

↑ back to top

Permalink to Pad a single decimal digit while removing thousand separatorsPad a single decimal digit while removing thousand separators

↑ back to top

Permalink to Leave a single decimal place unpaddedLeave a single decimal place unpadded

↑ back to top

Permalink to Convert a comma decimal separator to a dotConvert a comma decimal separator to a dot

↑ back to top

Permalink to Remove spaced thousand separators when no decimal separator is presentRemove spaced thousand separators when no decimal separator is present

↑ back to top

Permalink to Keep thousand separators while still normalising the outer quotesKeep thousand separators while still normalising the outer quotes

↑ back to top

Permalink to Leave a value unchanged when it contains non-numeric textLeave a value unchanged when it contains non-numeric text

↑ back to top

Permalink to Preserve a number whose separators are ambiguousPreserve a number whose separators are ambiguous

↑ back to top

Permalink to Pad one-digit fractions without losing precisionPad one-digit fractions without losing precision

↑ back to top

Permalink to Remove spaces used as thousand separatorsRemove spaces used as thousand separators

↑ back to top

Permalink to Remove apostrophes used as thousand separatorsRemove apostrophes used as thousand separators

↑ back to top
back 

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab