In general, to represent numbers with fractional parts, computers use a “floating point” binary representation. Floating point arithmetic is also used by AmiBroker for AFL calculations. For some more information about floating point representation in general see the following article, here we will only discuss some practical aspects.<\/p>
http:\/\/en.wikipedia.org\/wiki\/Floating_point<\/a><\/p>
* represents endless cycle.<\/p>
See also:
About significant figures:http:\/\/en.wikipedia.org\/wiki\/Significant_figures<\/a><\/p>
IEEE754 conversion calculators:
http:\/\/babbage.cs.qc.edu\/IEEE-754\/Decimal.html<\/a>
http:\/\/babbage.cs.qc.edu\/IEEE-754\/32bit.html<\/a><\/p>
IEEE754 standard description:
http:\/\/en.wikipedia.org\/wiki\/IEEE_754-1985<\/a><\/p>
Essay about comparing floatin point numbers:
http:\/\/www.cygnus-software.com\/papers\/comparingfloats\/comparingfloats.htm<\/a><\/p>
Microsoft Knowledge Base: “Precision and Accuracy in Floating-Point Calculations”
http:\/\/support.microsoft.com\/kb\/125056<\/a><\/p>
Note also that due to the architectural differences between compilers for 32-bit and 64-bit programs,
small numerical differences may exist between 32-bit and 64-bit version of AmiBroker due to the fact that 32-bit version uses x87 FPU code while 64-bit version uses SSE2 code and the underlying floating point hardware is different and operate slightly differently.
x87 FPU code internally offers more (80bit) precision than SSE2 (64-bit).
For in-depth discussion see:
https:\/\/randomascii.wordpress.com\/2012\/03\/21\/intermediate-floating-point-precision\/<\/a><\/p>","protected":false},"excerpt":{"rendered":"