Add support for Float attributes

Uses .to_f method on object, can convert from all objects supporting this method
Merge pull request #4 from nicolas-fricke/add_float_support

Add float support