View Issue Details

IDProjectCategoryView StatusLast Update
0029745RunnerVariables (In-Built)Public2021-08-03 16:21
ReporterStewart BishopAssigned ToCoreTech 
PriorityLowSeverityC - GeneralReproducibility100%
Status ResolvedResolutionSuspended 
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
1.4 Found In
2.x Runtime Found In2.1.5.237
2.x Runtime Verified In


Stewart Bishop

2018-07-03 14:03


Rounding bug.yyz (14,685 bytes)


2021-08-03 16:21

Developer   ~0066581

Have moved to the current bug database now, as still happens in v2.3.3.