Search found 347 matches

by Provoni
Jan 06, 2014 14:18
Forum: Beginners
Topic: 0.5999999 ???(solved)
Replies: 19
Views: 2115

Re: 0.5999999 ???

Hey all, Thanks allot for all your answers and explanations. Good to know it is a limitation of the floating point. I like the Currency (fixed point) variable type but it is not available to FreeBASIC it seems. I'm currently upscaling an integer to get what I want, I'm using this value to scale up a...
by Provoni
Jan 05, 2014 13:38
Forum: Beginners
Topic: 0.5999999 ???(solved)
Replies: 19
Views: 2115

0.5999999 ???(solved)

Hey, I'm new to FreeBasic and encountered a small problem which I can't seem to fix with elegance. Something like this: declare as single a a=1 do a=a-0.1 loop Expected output on my end is 0.9, 0.8, 0.7, ... But it turns out to be 0.899999,0.799999, ... For doubles this turns into 0.90000000001 or s...

Go to advanced search