in reply to Re^2: 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 / ('1' . ('0' x int (length ($num) -1))));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to extract the first elemnet from an integer type value ???
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 | |
|
Re^4: How to extract the first elemnet from an integer type value ???
by Leviathan (Scribe) on Aug 31, 2006 at 10:11 UTC |