Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
wowotek58166y@Root how ? I mean you can interpret floating points number with real/integers number?
-
@wowotek
There are quite a lot arbitary-precision-integer library's out there, for almost all languages. -
one workaround could be to use floating point numbers with the base 10, sacrificing performance for accuracy
-
Root797676yThere are so many different approaches I don't even want to list them, but here are a couple:
1) long long plus a decimal place tracker. Add a power tracker for insanely large numbers.
2) string math (perfect accuracy, range limited only by memory, slow as beans)
As @metamourge said, there are libraries out there for every language. Read them! -
wowotek58166y@metamourge @Root i just read those description. And as mindblown as i am, my brain is just happy. Thabks !
-
Pickman6526yWell, supercomputers are not special. They treat floating numbers in the same way common computers do. When more precision than what is available in a float or a double is required other more complex types are used. I'm sure that there are some specific libraries for some particular systems but I expect it to be just a matter of getting better performance and the actual representation of the number not to be very different.
-
You use numerical stable algorithms or an iterative approach to get a solution that is accurate (e.g. when adding up numbers starting with the smallest number).
Also some PowerPC CPUs supports quad precision natively -
wowotek58166y@StopMotionCuber how can a computer support a quad precision floating point with a 64-bit processor?
-
@wowotek
I'm not a CPU engineer but there is also AVX which supports 256/512 bit operations on a 64 bit processor.
Ok so the real question is, if the Floating Points have some limitation in accuracy, how do Supercomputers Handle that?
random