Naveen Prabhakar wrote: > > Hi, Hello,
> I have a really simple question.I have two numbers
>
> say $a = 1.559999
>
> $b=1.5599999999
>
> how do I compare them to exactly 6 decimals without doing a round off.I used
> sprintf but it does a round off.
s/(?<=\.\d{6})\d+// for $a, $b;
if ( $a eq $b ) {
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
