4 ms·
Good question. If we all posted every library we've ever worked on HN would have 0% relevant content instead of the usual 1%.
by floor_ 4y ago
Good question. If we all posted every library we've ever worked on HN would have 0% relevant content instead of the usual 1%.
- frabert 4y agoYou should use MPFR to have more precision on those figures
- karamanolev 4y agoI remember years ago when I didn't know that much about software engineering, discovering and playing with MPFR was like magic. "I have super-science power in my hands, how many bits of precision can I fit in my RAM". It was a fun time. Can I do big integer? Bigger integer? HUGER integers!
- floor_ 4y agoAdvent Of Code seems to always have a Big Integer question to trip up beginner programmers. Its a great way to learn. Also coding a simple emulator, like for the chip-8 for example, and learning what a carry flag does would help with basic understanding of the problem.
- karamanolev 4y agoI've coded more than one mini-big int libraries for some high school CS comps back in the day. Also fun times. Simple arithmetic is easy and we never got really complicated operations for big ints. These days I'm super lazy and just Python the big int problems on things like Advent of Code. Much more boring. And because of floating point issues, I haven't seen them give something in the real domain, as compared to whole numbers.