<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=539245001-26102006>My next project is to read a doc file and do 
some number editing.</SPAN></DIV>
<DIV><SPAN class=539245001-26102006>I can alter numbers in the Interactive Shell 
OK:</SPAN></DIV>
<DIV><SPAN class=539245001-26102006></SPAN><SPAN 
class=539245001-26102006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=539245001-26102006>import math<BR>print 
round(7.12345,4)<BR>7.1234</SPAN></DIV>
<DIV><SPAN class=539245001-26102006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=539245001-26102006>from decimal 
import*<BR>Decimal('7.00000').quantize(Decimal('1.000'),rounding = 
decimal.ROUND_DOWN)<BR>Decimal("7.0000")</SPAN></DIV>
<DIV><SPAN class=539245001-26102006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=539245001-26102006>But when I go in to IDLE, I just don't seem 
to be able to make this work.</SPAN></DIV>
<DIV><SPAN class=539245001-26102006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=539245001-26102006>A typical line of code for me to read and 
edit will look like:</SPAN></DIV>
<DIV><SPAN class=539245001-26102006>G01 G91 X<U>7.12345</U> Y<U>7.0000</U> 
Z-0.0086&nbsp;</SPAN></DIV>
<DIV><SPAN class=539245001-26102006>The underlines is what I need to edit, as 
above.</SPAN></DIV>
<DIV><SPAN class=539245001-26102006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=539245001-26102006>I must not understand something 
fundamental.</SPAN></DIV>
<DIV><SPAN class=539245001-26102006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=539245001-26102006></SPAN>&nbsp;</DIV>
<DIV>Joe Cox</DIV>
<DIV>513-293-4830</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>