Skip to content

International conversion of string values to double (or int) #403

@hjmjohnson

Description

@hjmjohnson

Thanks to @ihnorton for bringing this to our attention in #394:


std::stod is risky in a different way: it is locale-dependent, so international users could see strange results or failures (due to parsing . and , incorrectly). Unfortunately this is another place where C/C++ stdlib has no clearly-superior options from what I can tell:


#394 is still considered an incremental improvement, so it will be merged as is for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions