12-03-2022, 05:07 PM
(This post was last modified: 12-03-2022, 05:16 PM by Kernelpanic.)
(12-03-2022, 12:08 PM)SMcNeill Wrote: 2...
The only explanation for me, it's rounded up to 2 by some function at compile time. Then the result is correct.
PS: That's how it is - It is rounded up from 1.5. 1.4 \ 1 = 1
Code: (Select All)
Print Fix(1.5) \ 1
Print Using "##"; 1.5 \ 1
Print
Print 1.5 / 1
In Julia, the first result is also a bit peculiar. How do one get 0.666?