Webassembly: I cannot find a reference for this syntax (f32.const -0x0p+0). What number / bit pattern does it represent? It is from a test file for the reference interpreter:
https://github.com/WebAssembly/spec/blob/master/test/core/f32.wast#L19
It’s hexadecimal floating-point as supported by C and more recently C++.
The significand is given in hexadecimal, and the exponent is given in decimal and interpreted with respect to base 2. It can exactly represent all floating-point numbers except NaNs.
The text format adopted this in this issue.
It is hexadecimal float notation, as inspired by C and other languages.
The respective specification can be found here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With