>-----Original Message-----
>From: Wayne Simmons
>Sent: Thursday, March 30, 2006 10:36 AM
>Subject: persision and perl

>my $x = .0006;
>my $y = $x * 10000;
>print $y , "\n";
>print sprintf("%04d\n",$y);
>print int($y), "\n";
>__END__

> -----Original Message-----
> From: Christopher Hahn [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 30, 2006 12:34 PM
> Subject: RE: persision and perl
> 
> Int returns the integer portion --> it truncates!


Great, thanks for filling me in! So 6 truncates to 5 in perl?!? :-0

-Wayne

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to