Re: Removing decimal points

2007-06-14 Thread ash
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/

Re: Removing decimal points

2007-06-14 Thread Chas Owens
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

Re: Removing decimal points

2007-06-14 Thread yitzle
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

Re: Removing decimal points

2007-06-14 Thread Brad Baxter
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

Re: Removing decimal points

2007-06-10 Thread Ken Foskey
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

Re: Removing decimal points

2007-06-10 Thread Rob Dixon
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

Re: Removing decimal points

2007-06-09 Thread Chas Owens
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

Re: Removing decimal points

2007-06-09 Thread yitzle
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

Re: Removing decimal points

2007-06-09 Thread Xavier Noria
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]

Re: Removing decimal points

2007-06-09 Thread Owen
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 ===

Re: Removing decimal points

2007-06-09 Thread Tom Phoenix
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

Re: Removing decimal points

2007-06-09 Thread Chas Owens
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

Re: Removing decimal points

2007-06-09 Thread Aruna Goke
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

Re: Removing decimal points

2007-06-09 Thread Martin Barth
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

Re: Removing decimal points

2007-06-09 Thread Jeff Pang
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:

Re: Removing decimal points

2007-06-09 Thread Rob Dixon
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

Removing decimal points

2007-06-08 Thread 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. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/