blob: 356601130998e2c0c034b71b6c8ddbdaccbfabb7 [file] [log] [blame]
Damien George84895f12017-11-27 12:51:52 +11001# test parsing of floats, requiring double-precision
2
3# very large integer part with a very negative exponent should cancel out
4print(float('9' * 400 + 'e-100'))
5print(float('9' * 400 + 'e-200'))
6print(float('9' * 400 + 'e-400'))
7
8# many fractional digits
9print(float('.' + '9' * 400))
10print(float('.' + '9' * 400 + 'e100'))
11print(float('.' + '9' * 400 + 'e-100'))
12
13# tiny fraction with large exponent
14print(float('.' + '0' * 400 + '9e100'))
15print(float('.' + '0' * 400 + '9e200'))
16print(float('.' + '0' * 400 + '9e400'))