RE: replacing numbers around a decimal

2002-10-18 Thread William McKee
Hi Andrew, I think your approach should work fine as long as you put your data into a standard format. Perl doesn't differentiate between strings or numbers. A few suggestions: 1. encapsulate this code into a generic function, or method if you're doing OOP 2. use a constant or a

RE: replacing numbers around a decimal

2002-10-18 Thread Hughes, Andrew
ndrew -Original Message- From: Felix Geerinckx [mailto:felix_geerinckx@;hotmail.com] Sent: Thursday, October 17, 2002 3:06 PM To: [EMAIL PROTECTED] Subject: Re: replacing numbers around a decimal on wo, 16 okt 2002 20:03:31 GMT, Andrew Hughes wrote: > I am creating a little calculato

Re: replacing numbers around a decimal

2002-10-18 Thread Felix Geerinckx
on wo, 16 okt 2002 20:03:31 GMT, Andrew Hughes wrote: > I am creating a little calculator that is going to need to take a > user entered number that will always have 2 decimal places (using > sprintf). It could be 89562321.29 or it could be 101.00) and take > the last 4 digits (with the period in