3 ms·
It's just a blob of bytes. If you write a 32-bit float and then read an int from the same location, you get whatever int those 32 bits form.
by aappleby 8y ago
It's just a blob of bytes. If you write a 32-bit float and then read an int from the same location, you get whatever int those 32 bits form.
- Waterluvian 8y agoThat generally tells me that this tool is meant for developers smarter than me to make the appropriate abstractions for me to use. Not for me to consider this a core part of my web app development toolkit. :)
- Ajedi32 8y agoVery much in keeping with the [Extensible Web Manifesto][1]. [1]: https://extensiblewebmanifesto.org/ https://extensiblewebmanifesto.org/
- travisoneill1 8y ago> this tool is meant for developers smarter than me Developers solving different problems than you. When you run into a problem that needs this tool don't hesitate to use it. Dealing with data structures like this isn't really harder than the usual JS stuff, just different and a learning curve.
- gsnedders 8y agoAnd to be clear, unlike in C it's well-defined what those 32-bits are, because it's defined to be an IEEE 754 binary float32.
- deleted 8y ago[deleted]