Modify ↓
Ticket #107 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.

(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.