Thank you all!
I used POSIX floor() and ceil(). Thanks for all the suggestion.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
On 6/14/07, yitzle <[EMAIL PROTECTED]> wrote:
On 6/13/07, Brad Baxter <[EMAIL PROTECTED]> wrote:
> On Jun 8, 3:52 pm, [EMAIL PROTECTED] (Ash) wrote:
> > Hello there!
> >
> > I need to remove decimal points from numbers. For eg 1.23 or 1.77
> > would be just 1. Any suggestion is appreciated. Thank
On 6/13/07, Brad Baxter <[EMAIL PROTECTED]> wrote:
On Jun 8, 3:52 pm, [EMAIL PROTECTED] (Ash) wrote:
> Hello there!
>
> I need to remove decimal points from numbers. For eg 1.23 or 1.77
> would be just 1. Any suggestion is appreciated. Thank you.
Did anybody mention int()?
--
Brad
The first 6
On Jun 8, 3:52 pm, [EMAIL PROTECTED] (Ash) wrote:
> Hello there!
>
> I need to remove decimal points from numbers. For eg 1.23 or 1.77
> would be just 1. Any suggestion is appreciated. Thank you.
Did anybody mention int()?
--
Brad
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
On Fri, 2007-06-08 at 19:52 +, ash wrote:
> Hello there!
>
> I need to remove decimal points from numbers. For eg 1.23 or 1.77
> would be just 1. Any suggestion is appreciated. Thank you.
$i = 1.77;
$j = int $i;
print $j;
--
Ken Foskey
FOSS developer
--
To unsubscribe, e-mail: [EMAIL PRO
yitzle wrote:
On 6/8/07, Xavier Noria <[EMAIL PROTECTED]> wrote:
On Jun 8, 2007, at 9:52 PM, ash wrote:
I need to remove decimal points from numbers. For eg 1.23 or 1.77
would be just 1. Any suggestion is appreciated. Thank you.
Use de int() function.
Why does the list attract so many du
On 6/9/07, yitzle <[EMAIL PROTECTED]> wrote:
Why does the list attract so many duplicate responses?
If you don't use a threading mail reader and you start with the oldest
message then when you see a simple question like this that has one
obviously right answer you just give it. Later you see t
Why does the list attract so many duplicate responses?
On 6/8/07, Xavier Noria <[EMAIL PROTECTED]> wrote:
On Jun 8, 2007, at 9:52 PM, ash wrote:
> I need to remove decimal points from numbers. For eg 1.23 or 1.77
> would be just 1. Any suggestion is appreciated. Thank you.
Use de int() functio
On Jun 8, 2007, at 9:52 PM, ash wrote:
I need to remove decimal points from numbers. For eg 1.23 or 1.77
would be just 1. Any suggestion is appreciated. Thank you.
Use de int() function.
-- fxn
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Fri, 08 Jun 2007 19:52:59 -
ash <[EMAIL PROTECTED]> wrote:
> Hello there!
>
> I need to remove decimal points from numbers. For eg 1.23 or 1.77
> would be just 1. Any suggestion is appreciated. Thank you.
This program removes the decimal point from your numbers
===
On 6/8/07, ash <[EMAIL PROTECTED]> wrote:
I need to remove decimal points from numbers. For eg 1.23 or 1.77
would be just 1. Any suggestion is appreciated. Thank you.
Sounds as if you're looking for int, which is documented in the
perlfunc manpage. If that's not it, someone can show you how to
On 6/8/07, ash <[EMAIL PROTECTED]> wrote:
Hello there!
I need to remove decimal points from numbers. For eg 1.23 or 1.77
would be just 1. Any suggestion is appreciated. Thank you.
If you just want the integer part (aka floor) then use the int function.
my $n = 1.23;
my $i = int $n;
If you wa
ash wrote:
Hello there!
I need to remove decimal points from numbers. For eg 1.23 or 1.77
would be just 1. Any suggestion is appreciated. Thank you.
perldoc -f int
int EXPR
int Returns the integer portion of EXPR. If EXPR is omitted, uses
$_. You should not use this fu
On Fri, 08 Jun 2007 19:52:59 -
ash <[EMAIL PROTECTED]> wrote:
> Hello there!
>
> I need to remove decimal points from numbers. For eg 1.23 or 1.77
> would be just 1. Any suggestion is appreciated. Thank you.
>
>
my $number = 1.77;
print int $number;
--
To unsubscribe, e-mail: [EMAIL PROT
ash 写道:
Hello there!
I need to remove decimal points from numbers. For eg 1.23 or 1.77
would be just 1. Any suggestion is appreciated. Thank you.
is int() ok?
print int(1.77); would get 1.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http:
ash wrote:
I need to remove decimal points from numbers. For eg 1.23 or 1.77
would be just 1. Any suggestion is appreciated. Thank you.
You need the int() function.
perldoc -f int
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://lear
Hello there!
I need to remove decimal points from numbers. For eg 1.23 or 1.77
would be just 1. Any suggestion is appreciated. Thank you.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
17 matches
Mail list logo