I have the following loop :
for {set i 1} {$i<=$nbrx} {incr i 1} {
for {set j 1} {$j<=$nbry} {incr j 1} {
node $numberer [expr ($i-1)*$dx] [expr ($j-1)*$dy]
etc. etc.
}
}
nbrx and nbry are very high valued variable (around 2000)
I give the following value to dx and dy = 0.1
I end up, on the fourth cycle (like i = 1 and j = 4) with the evaluation of
[expr ($j-1)*$dy]
as being 0.30000000000000004
Then if the loops keep going in, at some point (always the same) I will have this kind of value with .000000000000004 or 0.000000000001 whilst most of the other value will be singled value (like I would expect them to be).
Any1 got a idea of why this is happening? Thanks for the help!