Boost logo

Boost :

Subject: Re: [boost] [lexical_cast] Assumed internal double conversion of float?
From: Peter Dimov (lists_at_[hidden])
Date: 2019-01-29 17:42:28


Brian Kuhl wrote:

> Where does boost::detail::lcast_get_precision<float>() come from, and why
> is it 9 ?
> Is it perhaps assuming some intermediate double conversion internally?

boost::detail::lcast_get_precision<double>() is 17, so no.

My guess is that this is the precision that guarantees a perfect roundtrip.


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