wrong floats

This commit is contained in:
Irmen de Jong 2020-09-29 04:05:45 +02:00
parent 448c934cba
commit e986973b5e

View File

@ -25,17 +25,14 @@ main {
float ff1 = 12345
float ff2 = -99999
floats.print_f(ff1)
txt.chrout('\n')
;ff = 1+((-ff) *3) ; TODO fix invalid splitting (can't split because it references ff itself)
;ff = 1+((-ff2) *3) ; TODO splitting should be okay here
floats.print_f(ff1) ; TODO if we remove this, the following calcuation is wrong
txt.chrout('\n')
ff1 = -ff2 * 3
floats.print_f(ff1)
txt.chrout('\n')
floats.print_f(-ff2)
txt.chrout('\n')
floats.print_f(-ff1)
txt.chrout('\n')
return
struct Color {