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
Floating‐PointNumber=<sign>1.<fractionfield>x2(<ex ponentfield>‐bias)
Signbitfield
Thesignbitfieldisthemostsignificantbitofthefloating‐pointnumber.Thesignbitis0forpositive
numbersand1fornegativenumbers.
Fractionfield
Thefractionfieldcontainsthefractionalpartofanormalizednumber.Normalizednumbersare
greaterthanorequalto1andlessthan2.Sinceallnormalizednumbersareoftheform
1.XXXXXXXX,the1becomesimplicitandisnotstoredinmemory.Thebitsinthefractionfieldare
the
bitstotherightofthebinarypoint,andtheyrepresentnegativepowersof2.
Forexample:
0.011(binary)=2‐2+2‐3=0.25+0.125=0.375
Exponentfield
Theexponentfieldcontainsabiasedexponent;thatis,aconstantbiasissubtractedfromthe
numberintheexponentfieldtoyieldtheactualexponent.(Thebiasmakesnegativeexponents
possible.)
Ifboththeexponentfieldandthefractionfieldarezero,thefloating‐pointnumberiszero.
NaN
ANaN(NotaNumber)isaspecialvaluethatisusedwhentheresultofanoperationisundefined.
Forexample,addingpositiveinfinitytonegativeinfinityresultsinaNaN.
FLOATdatatype
TheFLOATdatatypeisstoredintheIEEEsingle‐precisionformatwhichis32bits
long.Themost
significantbitisthesignbit,thenext8mostsignificantbitsaretheexponentfield,andthe
remaining23bitsarethefractionfield.Thebiasoftheexponentis127.Therangeofsingle‐
precisionformatvaluesisfrom1.18x10–38to3.4x
1038.Thefloating‐pointnumberispreciseto6
decimaldigits.
00000000000000000000000000000000=0.0
00111111100000000000000000000000=1.0
10111111101100000000000000000000=‐1.375
111111111
11111111111111111111111=NaN
DOUBLE
TheDOUBLEdatatypeisstoredintheIEEEdouble‐precisionformatwhichis64bitslong.Themost
significantbitisthesignbit,thenext11mostsignificantbitsaretheexponentfield,andthe
remaining52bitsare
thefractionalfield.Thebiasoftheexponentis1023.Therangeofsingle
precisionformatvaluesisfrom2.23×10–308to1.8×10308.Thefloating‐pointnumberisprecise
to15decimaldigits.

Related product manuals