Floating point nuisance

Blitz3D Forums/Blitz3D Programming/Floating point nuisance

Hiya guys. The feature editor I use saves information such as entity x, y and z etcetera. Recently though I found an anomaly while saving one of my objects. Using the debug information I recovered I found that an 'e' had crept into one of the floating point (namely the X coordinate of a door).

Here is the debug information as it was saved and also as it was loaded. Notice the Y and Z coordinates match perfectly (so it is unlikely to be a load error)...

---------------------------------
Saved Data
---------------------------------
X: 1.56462e-006
Y: -1.9
Z: 8.34981
Pitch: 0.0
Yaw: 0.0
Roll: 0.0
---------------------------------
Horizontal door:
Left open X value: -1.9
Right open X value: 1.9
---------------------------------
---------------------------------
Loaded Data
---------------------------------
X: 4.0
Y: -1.9
Z: 8.34981
Pitch: 0.0
Yaw: 0.0
Roll: 0.0
---------------------------------

How can I resolve this guys?