Skip to content

NaN == NaN #1046

Description

@mpmxyz

Describe the bug?

https://learn.microsoft.com/en-us/dotnet/api/system.double.nan?view=net-8.0
describes that NaN values are not equal to anything when using the equality operator. (including itself -> matches IEEE 754)
But ValueEquals<float> "==" doesn't behave like that. It even considers two different NaNs as equal.

To Reproduce

Just compare some NaNs:
NaN==NaN

Expected behavior

None of the comparisons should be true.

Screenshots

No response

Resonite Version Number

Beta 2023.12.21.1127

What Platforms does this occur on?

Windows

What headset if any do you use?

No response

Log Files

ANONYMOUS - 2023.12.21.1127 - 2024-01-02 10_28_23.log

Additional Context

No response

Reporters

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working as intended.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions