si_format 0.1.1

format numbers using metric prefixes
Documentation
  • Coverage
  • 100%
    7 out of 7 items documented3 out of 4 items with examples
  • Size
  • Source code size: 17.96 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.87 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • m-mueller678/si_format
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • m-mueller678

This crate formats numbers using metric prefixes:

assert_eq!(123456.si_format().to_string(),"123k");

This provides more limited functionality than si-scale, but works without std, alloc, and (optionally) floating point arithmetic. This is primarily intended to make numbers in logs and debug printing more readable at a minimum runtime cost.