Page MenuHomeFeedback Tracker

Math.Floor returns zero on numbers greater than 16777215
New, NormalPublic

Description

Example:

Math.Floor(16777216.0);  // returns 0.0

A cast to int can be used as a workaround if the argument is >= 0 and <= int.MAX.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Modding

Event Timeline

lava76 created this task.May 6 2023, 4:25 PM
Lad added a subscriber: Lad.May 6 2023, 6:07 PM
lava76 updated the task description. (Show Details)May 6 2023, 7:57 PM
lava76 updated the task description. (Show Details)May 6 2023, 8:48 PM