Support for floats

Not sure exactly why the bool case.