[Tutor] Rounding to n significant digits? (original) (raw)
Gregor Lingl glingl at aon.at
Mon Jul 5 02:16:23 EDT 2004
- Previous message: [Tutor] Rounding to n significant digits?
- Next message: [Tutor] Rounding to n significant digits?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Gregor Lingl schrieb:
As it happens sometimes the code below got corrupted. print statement should appear within the body of the for-loop.
Please use the attached code. Sorry for the inconvenience.
Gregor
Later after some correspondence about it we arrived at: import sys for i in range(3): r='' for c in sys.argv[1]: n=int('2l7y202nn6lx6xh0ve',36)//8**(3*int(c)+i)%8;r+=' | | ||'[2n:2n+3] print r -------------- next part -------------- import sys for i in range(3): r='' for c in sys.argv[1]: n=int('2l7y202nn6lx6xh0ve',36)//8**(3int(c)+i)%8;r+=' |_ _ | ||'[2n:2*n+3] print r
- Previous message: [Tutor] Rounding to n significant digits?
- Next message: [Tutor] Rounding to n significant digits?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]