in reply to Re: How to extract the first elemnet from an integer type value ???
in thread How to extract the first elemnet from an integer type value ???
--my $num = 100; my $digit = int ($num / 10 ** (length($num)-1) );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to extract the first elemnet from an integer type value ???
by GrandFather (Saint) on Aug 31, 2006 at 09:55 UTC | |
by Not_a_Number (Prior) on Aug 31, 2006 at 10:08 UTC | |
by GrandFather (Saint) on Aug 31, 2006 at 10:16 UTC | |
by Not_a_Number (Prior) on Aug 31, 2006 at 10:44 UTC | |
by GrandFather (Saint) on Aug 31, 2006 at 10:52 UTC | |
by Leviathan (Scribe) on Aug 31, 2006 at 10:11 UTC |