Convert 1.5K (SI Units) to 1500

numfmt

  • Convert numbers to and from human-readable strings.
    More information: <https://www.gnu.org/software/coreutils/numfmt>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

numfmt --from={{si}} {{1.5K}}

click the source code to copy install numfmt on any operating system with command-not-found.com