Issue #30 new

Numbers in exponential format

Anonymous created an issue

Hi,

Is the following behaviour intentional?

s = """exponential1: 6.85e+5 ... exponential2: 6.85e5 ... exponential3: 685e+3 ... """ y = yaml.load(s) print(y) {'exponential1': 685000.0, 'exponential2': '6.85e5', 'exponential3': '685e+3'}

I would expect all three values to be of the type float...

Stephan

Comments (1)

  1. Log in to comment