in reply to converting a suffix'd number to real number
Any chance you mean something like 1.47MLN, 4.718BLN, 1.88TRI?
my %multipliers = (MLN => 1_000_000, BLN => 1_000_000_000, TRI => 1_00 +0_000_000_000); ... $value = $1 * $multipliers{$2} if $value =~ /^([+-]?\d*\.?\d+)\s*(MLN|BLN|TRI)$/;
Yep, guys, I have seen things like this in some data feeds.
Jenda
Enoch was right!
Enjoy the last years of Rome.
|
|---|