why is my C port of the weather algorithm not working properly but my C++ port is
0 Boosts
0 Likes
simplex(x, y) seems to be returning the correct values and the correct x and y seem to be being computed so what gives
is casting a float to an unsigned integer undefined in C or something
1063 bytes of wasm
can I get that lower
I know there's 256 bytes of data in there that are kinda unavoidable
@ben are you doing an explicit or implict type cast
the weather algorithm: https://wiki.avakot.org/MediaWiki:Gadget-MidrathSky.js
for some reason I'm getting the wrong floating point value in C but not in C++