I have encountered something very weird. Blitzmax cant do floating point maths?!?
Blitz reports that (4/7) = 0.0000. WTF?!?!
My verison of Blitz is 1.22.
this is the code that generates the above output.
Then building the code.
Building afronding toets wat werk nie
Compiling:afronding toets wat werk nie.bmx
flat assembler version 1.66
3 passes, 3952 bytes.
Linking:afronding toets wat werk nie.debug.exe
Executing:afronding toets wat werk nie.debug.exe
Process complete
running the code produces this output
Building afronding toets wat werk nie
Executing:afronding toets wat werk nie.debug.exe
START
0.00000000000000000
Process complete
Where is my trouble? Why dod i get such a ridcilous error?
Blitz reports that (4/7) = 0.0000. WTF?!?!
My verison of Blitz is 1.22.
this is the code that generates the above output.
Strict Local objApp:clsMain = New clsMain; objApp.main(); Type clsMain Method main() Print "START" Print Double(4/7) '// windows calculator reports 4/7=0,57142857142857142857142857142857 End Method End Type
Then building the code.
Building afronding toets wat werk nie
Compiling:afronding toets wat werk nie.bmx
flat assembler version 1.66
3 passes, 3952 bytes.
Linking:afronding toets wat werk nie.debug.exe
Executing:afronding toets wat werk nie.debug.exe
Process complete
running the code produces this output
Building afronding toets wat werk nie
Executing:afronding toets wat werk nie.debug.exe
START
0.00000000000000000
Process complete
Where is my trouble? Why dod i get such a ridcilous error?