Skip to content

double.ToString() and float.ToString() not working as described #406

@MatthiasJentsch

Description

@MatthiasJentsch

Details about Problem

nanoFramework area: nanoCLR preview 791 / nanoFramework.CoreLibrary preview 62

Worked before? No

Detailed repro steps so we can see the same problem

(47.0).ToString() returns "47.000000000000000" and (11.0f).ToString() returns "11.000000000". But in lib-CoreLibrary\source\System\Number.cs for format "G" is stated: "Trailing zeros after the decimal point are removed, and the resulting string contains a decimal point only if required."

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions