adishavit / argh

Argh! A minimalist argument handler.
BSD 3-Clause "New" or "Revised" License
1.33k stars 93 forks source link

Improve serialization of floating point values #44

Closed GrishaKirilin closed 5 years ago

GrishaKirilin commented 5 years ago

Hi. Thank you for such a convenient library! I started to use it in almost all my cmdl utilities. In particular, I use it to parse configuration files that may contain floating-point values.

Here is my small improvement of the serialization of floating point numbers.

adishavit commented 5 years ago

I think that should work regardless of the floatiness. Just add the one line.

GrishaKirilin commented 5 years ago

Done. One line per case, no type traits.

adishavit commented 5 years ago

Much appreciated!