Skip to content

Some typos in Decimal.Parse code example. #4419

@Rodhern

Description

@Rodhern

I think there are a few inaccuracies around this point:

The text example says:

// Parse string using "." as the thousands separator
// and " " as the decimal separator.

and

// Displays:
//    892 694,12' converted to 892694.12.

Should it not be "," as a decimal separator. Possibly " " as the thousand separator. Also there is no reason to expect that the first "'" character is missing in the output. I.e. the expected output (including the leading "'") is:

'892 694,12' converted to 892694.12.

Metadata

Metadata

Assignees

No one assigned

    Labels

    doc-bugProblem with the content; needs to be fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions