#107 (Incorrect float declaration) – The Yasm Modular Assembler Project
Modify

Ticket #107 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Incorrect float declaration

Reported by: BraD Owned by:
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

comment:1 Changed 3 years ago 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.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.