in reply to Coping with decimals
my $phase; my $number = 2.543; #substr $phase = "0" . substr($number,index($number,".")); #regex $number =~ /(\..+)/; $phase = "0$1"; #int $phase = $number-int($number);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Coping with decimals
by polettix (Vicar) on Jun 02, 2005 at 10:50 UTC | |
|
Re^2: Coping with decimals
by mikeraz (Friar) on Jun 02, 2005 at 11:09 UTC | |
by tlm (Prior) on Jun 02, 2005 at 13:18 UTC | |
by BrowserUk (Patriarch) on Jun 02, 2005 at 13:28 UTC | |
by mikeraz (Friar) on Jun 02, 2005 at 16:26 UTC | |
by tlm (Prior) on Jun 02, 2005 at 16:47 UTC |