View Issue Details

IDProjectCategoryView StatusLast Update
0031547RunnerWindows (YYC)Public2021-04-23 14:52
ReporterDanAssigned ToRussell Kay 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformWindows YYCOSWindows 10OS Version1909
Product Version2.2.5 
Target Version2.3.0Fixed in Version2.3.0 
Summary0031547: Windows YYC: Comparing irandom() whole to a decimal number ignores the fractional part and returns true
DescriptionAs the attached sample shows, in Windows YYC comparing to an irandom() value appears to floor both sides, so all floating point values return true as long as the integer part would be a match. VM does not do this, so there is an inconsistency there also.

Expected: The test only returns 1 "match" - when time is equal to exactly 3.0. (This is what VM does)
Steps To Reproduce1. Run the attached sample for Windows YYC.
2. Observe the counter increments in 0.01 steps.
3. Observe that when it reaches 3.0 it starts returning true until time reaches 4.0, and so ends up with 100 matches.
Repro: 100%
TagsNo tags attached.
1.4 Found In
2.x Runtime Found In2.2.5.378
2.x Runtime Verified In



2019-12-20 14:02


irandomcomparison.yyz (18,327 bytes)
Screenshot_1.png (3,784 bytes)
Screenshot_1.png (3,784 bytes)

Russell Kay

2020-01-10 16:17

Manager   ~0065266

Fixed in gitlab


2021-04-23 14:52

Adminstrator   ~0065793

Fixed ages ago. Closing.