Skip to content

double.Parse(double.MinValue.ToString()) and double.Parse(double.MaxValue.ToString()) throw an System.OverflowException #8816

@qaqz111

Description

@qaqz111
double.Parse(double.MinValue.ToString()); //or double.Parse("-1.79769313486232E+308"); //and double.Parse(double.MaxValue.ToString()); //or double.Parse("1.79769313486232E+308");

These codes will throw a System.OverflowException which says "the value is too big or too small as double", while float with float.MaxValue and float.MinValue does not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions