Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0024003GameMaker Runner[All Projects] GeneralPublic2016-10-04 13:172016-10-07 10:04
ReporterAlexander Borup 
Assigned ToRussell Kay 
PriorityHighSeverityC - GeneralReproducibility100%
StatusClosedResolutionFixed 
PlatformOSOS Version
Summary0024003: General: Constant number comparison behaves differently
DescriptionA constant number comparison, say 1.9 == 1.1, will use different comparison rules from a runtime comparison.

If using constant values, 1.9 == 1.1 will evaluate to true.
If using variables holding 1.9 and 1.1 respectively, the comparison will evaluate to false.
Additional Informationshow_debug_message(1.9 == 1.1); // true
var n1 = 1.9;
var n2 = 1.1;
show_debug_message(n1 == n2); // false
GM Version9.9.9.9
Attached Files

- Relationships

-  Notes
(0049406)
Russell Kay (Manager)
2016-10-04 15:49

Fixed in gitlab - 25ffa14
(0049488)
Daniel Cleaton (Administrator)
2016-10-07 10:04

Verified fixed in 1763. Closing.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker