views:

168

answers:

2

Is there a bignum library for JavaScript that I can include like

<script type="text/javascript" src="the_bignum_library.js"></script>

?

I think my users would prefer to enter numbers in a web page and wait a 7 seconds for a result, rather than download an executable and click through a bunch of "this executable could possibly harm your computer" warning screens to install it.

Backup plans: If I write my own exact-rational-arithmetic JavaScript bignum library, would you recommend basing it on http://github.com/silentmatt/javascript-biginteger or http://www.mainebrook.com/john/fun/euler.html or some other JavaScript BigInt library? Or would you recommend calling from JavaScript into a Java bignum library such as apfloat ?

+1  A: 

Big Number.

Babiker
This will work great for my application.(Although technically this library can't exactly represent 1/7, it comes close enough for my application).
David Cary
A: 

Or you can do big number in PHP, and do ajax requests for calculations...

Bob Fincheimer