ufloat 0.1.0

Wrappers around floating point numbers with ufmt trait implementations
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented3 out of 3 items with examples
  • Size
  • Source code size: 11.12 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.06 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • LiamGallagher737/ufloat
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • LiamGallagher737

ufloat

A no_std compatible library for formatting floating point numbers with ufmt

crates.io docs.rs

Formatting a float is now as easy as wrapping it in either the Uf32 or Uf64 struct with the number of decimal places to format to.

use ufloat::{Uf32, Uf64};

// Format to 3 decimal places.
let a = Uf32(123.456, 3);
// Format to 5 decimal places.
let b = Uf64(123.45678, 5);

The libm crate is used for math operations.