Ticket #107 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Incorrect float declaration

Reported by: BraD Assigned to:
Priority: P1 Milestone:
Component: Build Tools / Libraries Version: 0.6.0
Severity: normal Keywords:
Cc:

Description

Im using yasm to build binary files executables on a Virtual Machine oriented to build a 2d game engine, all variables and operands for math ops, are type double or float, when in the asm codes:

dd 3.141592 ; In the binary it's 3.141592 dd 1.000000 ; In the binary it's 0.500000 dd 1.00000 ; In the binary it's 1.000000

only when it's has 6 decimal digits & they are 0

Attachments

Change History

05/10/07 19:19:37 changed by peter

  • status changed from new to closed.
  • resolution set to fixed.

(In [1836]) Fix #107: Float input "1.000000" hit an edge case in the code that caused the rounding increment at the end of float conversion to wrap the mantissa from all 1's to 0, resulting in an incorrect result.


Add/Change #107 (Incorrect float declaration)