EasyManua.ls Logo

Trimble R10 - FLOATING-POINT data types

Default Icon
150 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TrimbleR10ReceiverWebHelp
FloatingPointNumber=<sign>1.<fractionfield>x2(<ex ponentfield>‐bias)
Signbitfield
Thesignbitfieldisthemostsignificantbitofthefloatingpointnumber.Thesignbitis0forpositive
numbersand1fornegativenumbers.
Fractionfield
Thefractionfieldcontainsthefractionalpartofanormalizednumber.Normalizednumbersare
greaterthanorequalto1andlessthan2.Sinceallnormalizednumbersareoftheform
1.XXXXXXXX,the1becomesimplicitandisnotstoredinmemory.Thebitsinthefractionfieldare
the
bitstotherightofthebinarypoint,andtheyrepresentnegativepowersof2.
Forexample:
0.011(binary)=22+23=0.25+0.125=0.375
Exponentfield
Theexponentfieldcontainsabiasedexponent;thatis,aconstantbiasissubtractedfromthe
numberintheexponentfieldtoyieldtheactualexponent.(Thebiasmakesnegativeexponents
possible.)
Ifboththeexponentfieldandthefractionfieldarezero,thefloatingpointnumberiszero.
NaN
ANaN(NotaNumber)isaspecialvaluethatisusedwhentheresultofanoperationisundefined.
Forexample,addingpositiveinfinitytonegativeinfinityresultsinaNaN.
FLOATdatatype
TheFLOATdatatypeisstoredintheIEEEsingleprecisionformatwhichis32bits
long.Themost
significantbitisthesignbit,thenext8mostsignificantbitsaretheexponentfield,andthe
remaining23bitsarethefractionfield.Thebiasoftheexponentis127.Therangeofsingle
precisionformatvaluesisfrom1.18x10–38to3.4x
1038.Thefloatingpointnumberispreciseto6
decimaldigits.
00000000000000000000000000000000=0.0
00111111100000000000000000000000=1.0
10111111101100000000000000000000=‐1.375
111111111
11111111111111111111111=NaN
DOUBLE
TheDOUBLEdatatypeisstoredintheIEEEdoubleprecisionformatwhichis64bitslong.Themost
significantbitisthesignbit,thenext11mostsignificantbitsaretheexponentfield,andthe
remaining52bitsare
thefractionalfield.Thebiasoftheexponentis1023.Therangeofsingle
precisionformatvaluesisfrom2.23×10–308to1.8×10308.Thefloatingpointnumberisprecise
to15decimaldigits.

Related product manuals