Skip to content

A no_std compatible library for formatting floating point numbers with ufmt

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

LiamGallagher737/ufloat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A no_std compatible library for formatting floating point numbers with ufmt

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Languages