On Tue, May 29, 2001 at 06:51:32PM +0100, Michael G Schwern wrote:
> The perlfaq4 answer about floating point error should point out the
> technique of working in integers and then converting to decimal at the
> end.
>
> --- pod/perlfaq4.pod 2001/05/29 17:46:32
> +++ pod/perlfaq4.pod 2001/05/29 17:48:38
> @@ -39,6 +39,11 @@
> (part of the standard Perl distribution), but mathematical operations
> are consequently slower.
>
> +If precision is important, such as when dealing with money, its good
> +to work with integers and then divide at the last possible moment.
> +For example, work in pennies (1995) instead of dollars and cents
> +(19.95) and divide by 100 at the end.
> +
s/its/it's/;
Ronald