TOPLLab / WARDuino

📟 A dynamic WebAssembly VM for embedded systems
https://topllab.github.io/WARDuino/
Mozilla Public License 2.0
72 stars 7 forks source link

Float comparisons involving `NaN` should always be false #221

Open tolauwae opened 4 months ago

tolauwae commented 4 months ago

Floating points in WebAssembly follow the IEEE-754 standard, where all comparisons with NaN should be false. This is not the case in WARDuino.

https://webassembly.github.io/spec/core/bikeshed/#floating-point%E2%91%A0