E
Eric
Hi,
In a data table I have records numbered from 801 to 809.
I also use these numbers as row number then 8.01 to 8.09.
To do so I just devide the record number by 100 and put it in a variable of
type decimal (also tried double and single).
At one point I compare this value with a number to do an evaluation:
itemnr = CDec(rw("itemnr")) / 100
"If itemnr = 8.03 Or itemnr = 8.04 Or itemnr = 8.06 Or itemnr = 8.07 Then"
Well it should look like that, but it actually showing:
" If itemnr = 8.0299999999999994 Or itemnr = 8.0399999999999991 Or itemnr =
8.0600000000000005 Or itemnr = 8.0700000000000003 Then"
How can I get rid of the extra decimals?
I don't need them and it's confusing.
rg,
Eric
In a data table I have records numbered from 801 to 809.
I also use these numbers as row number then 8.01 to 8.09.
To do so I just devide the record number by 100 and put it in a variable of
type decimal (also tried double and single).
At one point I compare this value with a number to do an evaluation:
itemnr = CDec(rw("itemnr")) / 100
"If itemnr = 8.03 Or itemnr = 8.04 Or itemnr = 8.06 Or itemnr = 8.07 Then"
Well it should look like that, but it actually showing:
" If itemnr = 8.0299999999999994 Or itemnr = 8.0399999999999991 Or itemnr =
8.0600000000000005 Or itemnr = 8.0700000000000003 Then"
How can I get rid of the extra decimals?
I don't need them and it's confusing.
rg,
Eric