3 ms·
"(there's probably libraries to implement that already im ignorant of)" Look for the word BigFloat in your choice of language. For an alternate spin, look for
by jerf 5y ago
"(there's probably libraries to implement that already im ignorant of)"
Look for the word BigFloat in your choice of language. For an alternate spin, look for a "rational number" library in your choice of language.
- wongarsu 5y agoAlternatively, look for fixed point numbers (though usually that's easy enough to just do manually by switching to a smaller unit, e.g. by using numbers in cents or millivolts or whatever)