Page MenuHomeFeedback Tracker

Accuracy to Decimal
New, WishlistPublic

Description

On numerous occasions i have seen the engine adding an extra .0001 to values very strangely but consistantly.

I first noticed on a Keydown Addaion for a variable simply adding .1 to _x
this counted up accurately but on subtraction on keydown it became eratic to _x = 0.73454353e and subsequently keydowm + .1 added 0.1+ an eratic thousandth with mad variances

in the current version i also noticed when saving an object with a location of
4148.6
It became
4148.6001

Details

Legacy ID
1416166764
Severity
None
Resolution
Open
Reproducibility
Always
Category
Engine
Steps To Reproduce

Place 3 objects on VR_map

for continutity sake open sqm and alter there positions to

position[]={4099,5,4362};
position[]={4148.6,5,4362};
position[]={4198.2,5,4362};

load the mission and resave
these positions will become

position[]={4099,5,4362};
position[]={4148.6001,5,4362};
position[]={4198.2002,5,4362};

I am only tying this on Vr_map in both cases ,possibly the map unfortunately i cannot try the others at this time due to the placement nature of the objects

I presume all this is because of some Floatpoint problem somewhere but i believe its affecting everything from placemtn to AI acuracy Et Al..

Event Timeline

deanosbeano edited Additional Information. (Show Details)
deanosbeano set Category to Engine.
deanosbeano set Reproducibility to Always.
deanosbeano set Severity to None.
deanosbeano set Resolution to Open.
deanosbeano set Legacy ID to 1416166764.May 7 2016, 7:38 PM
Bohemia added a subscriber: AD2001.Oct 18 2014, 7:45 PM

Looks like the game is using single precision found the problem on a duplicate 0018538

ocf81 added a subscriber: ocf81.May 7 2016, 7:38 PM

Yeah, the engine should really bump the precision on the numbers used in scripts and do a conversion if this gets translated to the graphic environment.