japaric / ufmt

a smaller, faster and panic-free alternative to core::fmt
Apache License 2.0
352 stars 40 forks source link

Add simple float formatting #62

Closed Simsys closed 9 months ago

Simsys commented 9 months ago

I like the idea of this crate. The convenient, safe and fast conversion of variables into strings is very useful. So far I could not use this crate because no float variables were provided.

Most of the time we don't need much. The decimal notation is usually sufficient. This applies both to the output of numerical values on displays and to simple character-based protocols such as NMEA. There is already an approach from tl8roy. However, this is somewhat cumbersome in handling.

This approach continues the idea of ufmt and seamlessly integrates the float display. As I understand it, the other goals such as no-panic and a fast and snappy implementation should also be given.

I'm looking forward to the feedback!

Simsys commented 9 months ago

I want to rework some details and I will come back soon