Skip to content

NaNs should be treated as 0 in mathematical operations #17

@pufferfish101007

Description

@pufferfish101007

wherever scratch uses Cast.toNumber, NaNs are converted to 0 to avoid NaN propagation. Hyperquark should adhere to this too.
e.g. ((1 / 0) - (1 / 0)) + 11) should equal 11, not NaN.

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions