Skip to content

Add warning for unsupported MidpointRounding when using Math.Round #4871

Description

@michael-tugby

When using Math.Round(value, MidpointRounding.AwayFromZero), the enum actually gets read as its int equivalent, 1. This caused a bug in our rounding. There should probably be some sort of log in the console informing us that MidpointRounding is unsupported.

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