- Original Message -
From: "Ling F. Zhang" <[EMAIL PROTECTED]>
Date: Tuesday, July 1, 2003 7:04 am
Subject: math stuff...
> okay...I am glad @ how easy it is to use perl scalar
> both as numerical value and string...but sometimes I
> just need to do integer
Ling F. Zhang wrote:
> okay...I am glad @ how easy it is to use perl scalar
> both as numerical value and string...but sometimes I
> just need to do integer division the C way:
>
> when 10/3, I want it to equal to 3, not 3.3
> is there an operator for such operation? or do I have
> to do li
ng [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 7:04 AM
To: [EMAIL PROTECTED]
Subject: math stuff...
okay...I am glad @ how easy it is to use perl scalar
both as numerical value and string...but sometimes I
just need to do integer division the C way:
when 10/3, I want it to equal to 3, n
okay...I am glad @ how easy it is to use perl scalar
both as numerical value and string...but sometimes I
just need to do integer division the C way:
when 10/3, I want it to equal to 3, not 3.3
is there an operator for such operation? or do I have
to do like:
$a=10
$b=3
$c=$a/$b; # c=3.333