Skip to content

Commit a28a5c0

Browse files
📚 docs(manual): Write some content for examples.
1 parent 2bc9f13 commit a28a5c0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/manual/example.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
11
# Examples
2+
3+
> More examples in [the test files](https://github.com/aureooms/js-integer/tree/master/test/src).
4+
5+
```js
6+
import { ZZ } from '@aureooms/js-integer' ;
7+
8+
const a = ZZ.from( 'dead' , 16 ) ;
9+
const b = ZZ.from( '101010' , 2 ) ;
10+
11+
const c = a.add(b);
12+
console.log(c.toString()); // 57047
13+
```
14+
15+
**Note**: decimals are not supported in this library.

0 commit comments

Comments
 (0)