Skip to content

Commit f78bec1

Browse files
committedNov 13, 2018
update detail
1 parent dfe5995 commit f78bec1

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed
 

‎.npmignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
benchmark
2+
coverage
3+
spec
4+
tests
5+
docs
6+
node_modules
7+
.*
8+
lib
9+
todo.md
10+
.nyc_output
11+
.vscode
12+
static
13+
dist

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# BigBit
2-
An improved data type to save large numbers in less space without precision loss. check more detail [here](https://github.com/amitguptagwl/bigbit).
2+
An improved data type to save large numbers in less space without precision loss. check more detail [here](https://github.com/amitguptagwl/bigbit). Or try the [demo](http://nimn.in/BigBit)
33

44
```JavaScript
55
var HBSequence = require('bigbit').HeaderByte;
66

77
let hb = new HBSequence('167770021700.00');
8-
expect( hb.toDecimalString() ).toEqual('167770021700');
8+
expect( hb.toString() ).toEqual('167770021700');
99
expect( hb.toByteArray() ).toEqual([69, 2, 121, 172, 255, 99]);
1010
expect( hb.exponent ).toEqual( 2 );
1111
expect( hb.exponentInBytes ).toEqual( 2 );
@@ -14,7 +14,7 @@ expect( hb.headByte ).toEqual(69);
1414
var EHBSequence = require('bigbit').ExtendedHeaderByte;
1515

1616
let ehb = new EHBSequence('167770021700.00');
17-
expect( ehb.toDecimalString() ).toEqual('167770021700');
17+
expect( ehb.toString() ).toEqual('167770021700');
1818
expect( ehb.toByteArray() ).toEqual([69, 2, 121, 172, 255, 99]);
1919
expect( ehb.exponent ).toEqual( 2 );
2020
expect( ehb.exponentInBytes ).toEqual( [2] );

‎package.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bigbit",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "Implementation of BigBit standard",
55
"main": "index.js",
66
"scripts": {
@@ -15,8 +15,13 @@
1515
"head byte",
1616
"extended head byte",
1717
"linked bytes",
18-
"number",
19-
"big"
18+
"big number",
19+
"big",
20+
"binary32",
21+
"binary64",
22+
"utf8",
23+
"character encoding",
24+
"ieee754"
2025
],
2126
"author": "Amit Gupta (http://amitkumargupta.work)",
2227
"license": "MIT",

0 commit comments

Comments
 (0)
Please sign in to comment.