Boost logo

Boost Users :

Subject: Re: [Boost-users] lexical_cast and float
From: Igor R (boost.lists_at_[hidden])
Date: 2011-06-20 04:34:02


>> Perhaps, your locale requires comma as fp: "3,14"
>
> But what if one did want to convert from "3.14" instead of "3,14"? How can
> one specify the customization in this case?

I believe, the default C locale uses dot as decimal point, so
setlocale(LC_ALL, NULL) should help.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net