Prints floating-point exactly like a printf("%g", value)
, using a Display
implementation via libc
's printf()
's .
Use the crates.io repository; add this to your Cargo.toml
along
with the rest of your dependencies:
[dependencies]
gpoint = "0.2"
Then wrap your f32
or f64
with a GPoint
:
use gpoint::GPoint;
println!("answer: {}", GPoint(42.));
See the API documentation for further details.