si_format

Crates.iosi_format
lib.rssi_format
version0.1.1
sourcesrc
created_at2024-04-10 16:28:34.08415
updated_at2024-04-10 17:59:31.971953
descriptionformat numbers using metric prefixes
homepage
repositoryhttps://github.com/m-mueller678/si_format
max_upload_size
id1203771
size18,127
(m-mueller678)

documentation

README

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.

Commit count: 42

cargo fmt