Port old constructor of YAML's float type.