Boost logo

Boost :

From: Gavin Lambert (boost_at_[hidden])
Date: 2023-05-10 23:08:26


On 11/05/2023 02:01, Matt Borland wrote:
> What does charconv do? It converts a character sequence into a number
> (from_chars) or converts a number into a character sequence
> (to_chars). This is similar to strtod and printf with a few key
> differences. First and most important is a roundtrip guarantee. That
> is a number converted into a character sequence, and then back into a
> number will be identical to the starting value. Second, you can
> easily specify an input/output format with a chars_format argument,
> and also provide a target precision.

"Roundtrip guarantee" and "specify format/precision" appear to be
contradictory goals.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk