So, I know about floating point precision (and how things like 1.1 cannot be expressed exactly in binary form), and all this, but I wonder: how then do math libraries implement infinite accuracy? In other words, how would you accurately represent, for example, 1.1 in binary format? Just a brief description would be great, I can figure out the details myself. Thank you. :)
There are no endless precision libraries, but precision precision libraries exist. Learn more about how they are implemented, read the documentation : -)
1.1 , , . , (1) , (.1) - , . , (11/10) , , .
, :
. , "" ( , ). , . , Haskell, , , . base 2 -1, 0, 1. , , , 1, , 0 0.999... 1 1.000...
. , , .. , , .
. . 1/3 , . , pi e, - .
, . , .
, , , CGAL, , "" . , , .
:
.
, . . . GMP. , 1.1 = 11/10, (11, 10).
, .
. , . - - . `` '', -.
- BCMath PHP.
Pax , , , , ., ., "0,0001" + "0,1", , int.1:0 + 0 = 0 → [0].2:0 + 1 = 1 → [1].3:iter > "0.1".lenght() → stop.
Source: https://habr.com/ru/post/1710638/More articles:What is the equivalent syntax for this MVC view code in Spark? - asp.net-mvcCan I add something to a user session in a user membership package? - c #Do I need to check helper / install methods? - unit-testingHow to pass parameters from C # to MATLAB? - c #MSN Messenger as a notification - do you know any examples in .NET VB.NET or C #? - c #Form Focus Prevention - vb.nettop window shape - winformshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1710641/is-each-source-line-address-in-a-detailed-map-file-a-valid-address-to-insert-a-int3h&usg=ALkJrhhF46oA5DiRY1X6ouv6trqxrHKWfACan I create a wrapper around NUnit, MbUnit, xUnit, or another testing environment? - nunitDebugging clobbered static variable in C (is gdb broken?) - cAll Articles