Re: [Tutor] Float Addition

2005-08-18 Thread Alan G
I'm not exactky sure what's causing the errant behaviour but it might help if we start off by simplifying the code a little. > for N in range( 2, len( DEF_CARRIER_TUP) ): >Dis_N = DistanceCalc( DEF_CARRIER_TUP[N], > DEF_CARRIER_TUP[N-1] ) >print ( "Distance = " + str(Dis_N) )

[Tutor] Float Addition

2005-08-17 Thread DaSmith
Hi, I am a relatively new Python Programmer who is a bit puzzled at some of the behavior I am observing. . I have implemented the following loop, to create a running total of distances between 3D co-oordinate tuples, in a group of nodes from a Finite Element Node mesh: for N in range( 2, len(