Refactored Float and Double classes to use the static module pattern.