Strange problem with numbers
Posted: Wed Feb 10, 2016 12:16 pm
Hello,
i have a strange Problem with numbers.
for n:=1.8 to 10.8 step .5
? str(n,22,18)
next
1.800000000000000000
2.300000000000000000
2.800000000000000000
3.300000000000000000
3.800000000000000000
4.300000000000000000
4.800000000000000000
5.300000000000000000
5.800000000000000000
6.300000000000000000
6.800000000000000000
7.300000000000000000
7.800000000000000000
8.300000000000001000
8.800000000000001000
9.300000000000001000
9.800000000000001000
10.300000000000000000
10.800000000000000000
Tested with xHarbour 1.2.3, BCC7 and xHarbour 1.2.0., BCC5
Same Result
Have anyone a solution?
Regards
Thomas Grueninger
i have a strange Problem with numbers.
for n:=1.8 to 10.8 step .5
? str(n,22,18)
next
1.800000000000000000
2.300000000000000000
2.800000000000000000
3.300000000000000000
3.800000000000000000
4.300000000000000000
4.800000000000000000
5.300000000000000000
5.800000000000000000
6.300000000000000000
6.800000000000000000
7.300000000000000000
7.800000000000000000
8.300000000000001000
8.800000000000001000
9.300000000000001000
9.800000000000001000
10.300000000000000000
10.800000000000000000
Tested with xHarbour 1.2.3, BCC7 and xHarbour 1.2.0., BCC5
Same Result
Have anyone a solution?
Regards
Thomas Grueninger