mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-27 16:02:16 +00:00
12 lines
357 B
Markdown
12 lines
357 B
Markdown
#  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.
|