assemblyscript/lib/libm/README.md
2019-06-05 23:15:39 +02:00

12 lines
357 B
Markdown

# ![AS](https://avatars1.githubusercontent.com/u/28916798?s=48) libm
AssemblyScript's math routines for double and single precision as a library.
```ts
const libm = require("@assemblyscript/libm");
const libmf = libm.libmf;
...
```
Both `libm` and `libmf` have the same general interface as JavaScript's `Math`, with `libmf` doing single precision math.