Can 'impl Display' take precision arguments?
thejpster opened this issue · 4 comments
thejpster commented
It would be nice if println!("{0.3}", temp) gave "0.000°C". I have no idea if this is possible.
thejpster commented
I'm going to have a look at this one.
thejpster commented
See the precision branch for work in progress.
thejpster commented
I can pull width and decimal places, but not padding. Surely there's a way to pass the whole args variable to write.
thejpster commented
Ah. It's easy when you know how.
Call v.fmt(f), for some value v.
Fixed in weight_and_mass branch.