Skip to content

Commit b37b5fe

Browse files
committed
Initial commit.
0 parents  commit b37b5fe

File tree

10 files changed

+492
-0
lines changed

10 files changed

+492
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
*.js
3+
*.d.ts
4+
*.log.*
5+
*.log
6+
*.tgz

.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
test/
3+
src/
4+
*.log.*
5+
*.log
6+
*.tgz

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 BusFaster Ltd
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
bigfloat
2+
========
3+
4+
[![npm version](https://img.shields.io/npm/v/bigfloat.svg)](https://www.npmjs.com/package/bigfloat)
5+
6+
This library is under construction, the only features currently working are conversion from numbers and to strings.
7+
8+
`bigfloat` is a fast arbitrary precision math library optimized for computational geometry and geoinformatics.
9+
It provides base 2 floating point:
10+
11+
- addition
12+
- subtraction
13+
- multiplication
14+
- comparison
15+
- conversion from JavaScript number type
16+
- conversion to string in base 2, 10 or 16
17+
18+
without ever losing any significant bits.
19+
20+
Internally numbers are represented in 32-bit limbs somewhat like in the [GMP](https://gmplib.org/) library.
21+
22+
`bigfloat` is optimized for exponents relatively close to zero.
23+
24+
License
25+
===
26+
27+
[The MIT License](https://raw.githubusercontent.com/charto/bigfloat/master/LICENSE)
28+
29+
Copyright (c) 2015 BusFaster Ltd

package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "bigfloat",
3+
"version": "0.0.1",
4+
"description": "Fast arbitrary precision math library for computational geometry.",
5+
"main": "dist/bigfloat.js",
6+
"typings": "dist/bigfloat.d.ts",
7+
"browser": "dist/browser.js",
8+
"scripts": {
9+
"prepublish": "cd src && tsc && tsc -p tsconfig-browser.json",
10+
"test": "tsc -p test && node test/test.js"
11+
},
12+
"author": "Juha Järvi",
13+
"license": "MIT",
14+
"repository": {
15+
"type": "git",
16+
"url": "git+https://github.com/charto/bigfloat.git"
17+
},
18+
"bugs": {
19+
"url": "https://github.com/charto/bigfloat/issues"
20+
},
21+
"homepage": "https://github.com/charto/bigfloat#readme",
22+
"keywords": [
23+
"bignum",
24+
"gmp"
25+
],
26+
"devDependencies": {
27+
"typescript": "^1.8.0-dev.20151128"
28+
}
29+
}

0 commit comments

Comments
 (0)