pwtools.common.ffloat

pwtools.common.ffloat(st)[source]

Convert strings representing numbers to Python floats using float(). The returned value is a double (or whatever the float() of your Python installation returns).

Especially, strings representing Fortran floats are handled. Fortran Reals (= single) are converted to doubles. Kind parameters (like ‘_10’ in ‘3.0d5_10’) are NOT supported, they are ignored.

Parameters:

st (string) –

Return type:

float