Search found 393 matches
- Jan 08, 2014 14:29
- Forum: Community Discussion
- Topic: My intro
- Replies: 3
- Views: 859
My intro
Hello everyone, I'm a 32 year old Belgian hobby/amateur programmer from the QB64 community making a shift to FreeBASIC. My programming experience started as a 11 year old in QBASIC. I managed to write some very simple text games back then and all I knew was 100% self taught. It got boring after a wh...
- Jan 06, 2014 14:18
- Forum: Beginners
- Topic: 0.5999999 ???(solved)
- Replies: 19
- Views: 2450
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...
- Jan 05, 2014 13:38
- Forum: Beginners
- Topic: 0.5999999 ???(solved)
- Replies: 19
- Views: 2450
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...