Board index » delphi » Floating point / fixed point
Frederic
Delphi Developer 
Wed, 18 Jun 1902 08:00:00 GMT

Frederic
Delphi Developer 
Wed, 18 Jun 1902 08:00:00 GMT
Floating point / fixed point
What's the difference between these two?

Nikita Synytsky
Delphi Developer 
Wed, 18 Jun 1902 08:00:00 GMT
Re:Floating point / fixed pointQuoteFrederic wrote in message <3663EE27.88860...@rzonline.de>... 1. Fixed point. An example of fixed point representation will be an integer, or longint, or 2. Floating point After #1 this is pretty selfexplanatory. The binary point has no fixed The way IEEE 754 (and larger types that are derived from this standard) Nikita. 
Osmo Ronkan
Delphi Developer 
Wed, 18 Jun 1902 08:00:00 GMT
Re:Floating point / fixed pointIn article <3663EE27.88860...@rzonline.de>, QuoteFrederic <frede...@rzonline.de> wrote: float, ie. one can express different numbers within some range like 10^38..10^38 with precision of specific number of digits, like 10. One can for example present numbers: 123, 1.23, 0.123 etc. Note, however, that the internal representation is not necessarily accurate as computers typically use binary representation. In fixed point numbers the decimal point is at fixed position, i.e. there Turbo Pascal does not directly support fixed point numbers though one can Osmo 
Osmo Ronkan
Delphi Developer 
Wed, 18 Jun 1902 08:00:00 GMT
Re:Floating point / fixed pointIn article <7FT82.2225$5n1.17758...@news.magma.ca>, QuoteNikita Synytskyy <nik...@NOSPAMmondenet.com> wrote: Quote>d.) difficulty in representing very big or very small numbers IMO is more useful as real life is based more on decimals, like hundredths of a currency unit. Quote>2. Floating point The real type is 6 bytes so the RTL routines can process with registers, holding one real in DX:BX:AX and another in DI:SI:CX. With larger types one would run out of registers as there only is BP and SP left. Osmo 
Marcus Morri
Delphi Developer 
Wed, 18 Jun 1902 08:00:00 GMT
Re:Floating point / fixed pointIn article <7FT82.2225$5n1.17758...@news.magma.ca>, Nikita Synytskyy <nik...@NOSPAMmondenet.com> writes Quote>"real" type is standardized by IEEE. The standard number is IEEE 754 significant digit (the first being discarded). After all, in binary, if the first significant digit is always a "one" then why bother storing it? Might as well spend the space on extra precision. I remember falling off my chair with delight when I first heard about this and wishing I'd thought of it first! Regards   
Horst Kraem
Delphi Developer 
Wed, 18 Jun 1902 08:00:00 GMT
Re:Floating point / fixed pointOn Thu, 3 Dec 1998 04:44:12 +0000, Marcus Morris Quote<Mar...@ntos.demon.co.uk> wrote: standardized types are SINGLE, DOUBLE and EXTENDED (IEEE 854). They are implemented in TP/BP according to the standard because the INTEL copros implement them. Quote> I think this is the one where the mantissa begins at the SECOND most representation. For DOUBLE the layout is similar. TP REAL (48 bits) 47 sign DOUBLE 63 sign Interpretation: value = 2^(exponentbias) * (1 + mantissa/2^(sizeof_mantissa)) exponent=0 REAL : 0.0 (mantissa is ignored) Regards 
1. Floating Point and Fixed Point calculations HELP
2. Computing Center point of arc given only start point, end point , sweep angle direction draw
3. Modem point to point protocoll
4. PointtoPointProtocol (PPP) in Delphi 3
5. Olav (Connection DialUp) PointToPOint
6. point in polyline and point in polybezier
7. Changing point style for 1 point in DBChart Series