Page MenuHomeFeedback Tracker

Internal Engine String Format Differences 32bit & 64bit
Closed, ResolvedPublic

Description

There is some minor differences in the str output for ceil a negative number that is > -1 and < 0.
i.e -0.9, -0.1 etc

32bit -0 = "-0"
64bit -0 = "0"

This breaks some older code like KKNou_fnc_floatToString
from http://killzonekid.com/arma-scripting-tutorials-float-to-string-position-to-string/ etc

Details

Severity
Tweak
Resolution
Fixed
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

If you go into arma editor
Open Debug Console
In one of the watch fields enter

32bit

ceil -0.2343242323234

The result = -0 (this is the previous behaviour in arma 1.66)

64bit

ceil -0.2343242323234

The result = 0

Event Timeline

Torndeco created this task.Mar 21 2017, 1:11 AM
Torndeco changed Severity from None to Tweak.
Torndeco changed Reproducibility from N/A to Always.
Torndeco edited Steps To Reproduce. (Show Details)
Torndeco updated the task description. (Show Details)Mar 21 2017, 2:57 AM
Dwarden changed the task status from New to Acknowledged.Mar 21 2017, 3:27 AM
Dwarden set Ref Ticket to AIII-41822.

For the future, consider using toFixed (Example 3) https://community.bistudio.com/wiki/toFixed

toFixed appears to have float precision issues, would be nice to confirm its really that and accurate to 6 digits etc + not broken

toFixed has as much precision as Arma engine would allow

razazel claimed this task.Mar 28 2017, 9:29 AM
razazel changed the task status from Acknowledged to Feedback.
razazel added a subscriber: razazel.

Hello,

fix for this issue should be now available in the RC branch (1.68 Hotfix), could you please confirm?

Confimed its fixed on rc branch + latest perf build
Thanks

razazel closed this task as Resolved.Mar 28 2017, 2:25 PM
razazel changed Resolution from Open to Fixed.