in reply to convert last digit in decimal
What have you tried?
You could separate the decimal from the multiplier using a regular expression, use a hash (that maps "M" to 1e6 and "B" to 1e9), multiply the decimal by the multiplier and finally insert into the database.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: convert last digit in decimal
by baperl (Sexton) on Aug 10, 2011 at 20:52 UTC | |
by AR (Friar) on Aug 10, 2011 at 20:57 UTC | |
by baperl (Sexton) on Aug 10, 2011 at 22:13 UTC |