Skip to content

Commit 2b659fd

Browse files
David MartínezDavid Martínez
authored andcommitted
fix readme
1 parent 41194d1 commit 2b659fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ evaluate(`4 >= ${Math.PI}`); // true
5252
Valid tokens:
5353
- Parenthesis: (,)
5454
- Number: Decimal, integer or scientific e-notation
55-
- Operator: Arithmetic +,-,/,\*,\*\* Relational =\=\=,=\=,!==,!=,<,>,<=,>=
55+
- Operator: Arithmetic +,-,/,*,** Relational =\=\=,=\=,!==,!=,<,>,<=,>=
56+
5657
### Change precision
5758
```typescript
5859
import { BigFloat, set_precision } from "https://deno.land/x/bigfloat/mod.ts";
@@ -61,13 +62,15 @@ new BigFloat(2).sqrt().toString(); // "1.4142"
6162
set_precision(-10);
6263
new BigFloat(2).sqrt().toString(); // "1.4142135623"
6364
```
65+
6466
### The bigfloat object
6567
```typescript
6668
interface IBigFloat {
6769
coefficient: bigint;
6870
exponent: number;
6971
}
7072
```
73+
7174
Valid bigfloat made from primitives:
7275
```typescript
7376
const bigfloat: IBigFloat {

0 commit comments

Comments
 (0)