Page MenuHomeFeedback Tracker

Enscript bug with scalars
New, NormalPublic

Description

All three below produce 0, completely wrong. The issue seems to be with adding two floats and storing result into an integer type.

int a = 2.5 + 2.5; // 0
int b = 5645646.69 + 56465.1337; // 0
int c = 0.99 + 0.99; // 0

Details

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

Event Timeline

sharp1337 created this task.Nov 6 2022, 2:23 PM