Closed superchris closed 7 months ago
Yes this needs to be fixed! For now, you can switch modes by adding wasm_mode(Orb.F32)
. e.g:
defmodule Example do
use Orb
wasm_mode(Orb.F32)
defw fahrenheit_to_celsius(fahrenheit: F32), F32 do
(fahrenheit - 32.0) * 5.0 / 9.0
end
end
I’ve written up this example as a Livebook with it running in Wasmex: https://github.com/RoyalIcing/Orb/blob/main/examples/temperature-converter.livemd
With Orb v0.0.34 this has been fixed.
Example:
error: