Skip to content

Allow infinity to be a valid number #998

Closed
@tmilnthorp

Description

@tmilnthorp

Is your feature request related to a problem? Please describe.
We would like to be able to indicate things such as perfect conductivity or perfectly insulated objects. This requires double.PositiveInfinity to be accepted to unit constructors.

Describe the solution you'd like
Remove the guard check for infinity.

Describe alternatives you've considered
We have considered using double.MaxValue (which is our interim solution), however it is more accurate to use infinity.

Note this is a breaking behavior change. Should this be only considered for v5?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions