Skip to content

Javascript backend represents 32-bit floats as 64-bit floats

A fact I heard at the GHC Contributor's Workshop, although I may be misremembering the details (cc @hsyl20 ).

When someone has expressly asked for 32-bit floats, perhaps for compatibility with some other system, the different behavior regarding precision and over/underflow will likely be an issue.

I think the standard reply could be "don't do that", but some quick searching yields some possible ways of improving correctness:

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information