TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How BigIntegers work in JavaScript

26 pointsby Amaanover 13 years ago

3 comments

wbhartover 13 years ago
Here is a javascript bigint library by Leemon Baird<p><a href="http://www.leemon.com/crypto/BigInt.js" rel="nofollow">http://www.leemon.com/crypto/BigInt.js</a><p>It's about the best I've seen and embodies all the principles that are being explained by Matt.
euroclydonover 13 years ago
Seriously, for the number -123, the array [3, 2, 1] has the least significant digit in position zero?<p>[edit] Ah ha, printed arrays have position zero on the left. I thought it was on the right.
评论 #3146230 未加载
评论 #3146220 未加载
评论 #3146808 未加载
评论 #3146214 未加载
hardy263over 13 years ago
So does this mean using biginteger for small numbers could require almost 30x more memory?
评论 #3146859 未加载
评论 #3147548 未加载
评论 #3146828 未加载
评论 #3146940 未加载
评论 #3146602 未加载