parsing engineering symbols
gene tani
gene.tani at gmail.com
Tue Dec 20 10:32:41 EST 2005
Suresh Jeevanandam wrote:
> Hi,
> I want to convert a string to float value. The string contains
> engineering symbols.
> For example,
>
> s = '12k'
>
> I want some function which would return 12000
> function(s)
> => 12000.0
> I searched the web, but could not find any function.
>
> regards,
> Suresh
port this
http://api.rubyonrails.com/classes/ActiveSupport/CoreExtensions/Numeric/Bytes.html
More information about the Python-list
mailing list