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, kalb at, bjorn.karlsson at, gregod at, wekempf at