View Issue Details

IDProjectCategoryView StatusLast Update
0029745RunnerVariables (In-Built)Public2018-07-04 09:44
ReporterStewart BishopAssigned ToCoreTech 
PriorityLowSeverityC - GeneralReproducibility100%
Status AssignedResolutionOpen 
Product Version2.1.4 
Target VersionFixed in Version 
Summary0029745: Variables: Adding variables with decimals causes rounding issues
DescriptionWhen merging two values that have had decimal increases (such as 20*0.1 + 30*0.1) Game Maker rounds things wrongly. If you format the string to show 20 decimal places then rather than 0.1 not having anything after it you see it is shown as 0.10000000000000000882 which in turn causes variable addition to be done differently since internally we round,
Steps To Reproduce1) Run the sample
2) Click left mouse until you're at 3.0
3) Click right mouse until you're at 2.0
4) See the differences between round and ceil
TagsRunner
1.4 Found In
2.x Runtime Found In2.1.5.237
2.x Runtime Verified In

Activities

Stewart Bishop

2018-07-03 14:03

Developer  

Rounding bug.yyz (14,685 bytes)