The gestures testbed declared sinf and cosf at the top of its own file, which is a copy in every file that wants an angle. The reason sqrt is a declare does not transplant: IEEE-754 makes sqrt correctly rounded and requires nothing of the kind for sinf, so these two are the one place in the prelude where native and wasm32 may disagree bit for bit. That is written down beside them, along with what the fix would be if a program ever needs trig that agrees across targets. Float abs stays unwrapped for the reason integer abs is -- it is (max x (- 0.0 x)) over two builtins. The integer caveat does not carry over and the note says so: -0.0 answers +0.0 and a NaN answers a NaN, both checked.
Description
Languages
OCaml
67.2%
Emacs Lisp
15.2%
C
10.4%
HTML
2.9%
Standard ML
2.8%
Other
1.5%