Implement float literal formatting (#3184)

This commit is contained in:
Charlie Marsh 2023-02-23 14:02:23 -05:00 committed by GitHub
parent 376eab3a53
commit ac79bf4ee9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 125 additions and 13 deletions

View file

@ -48,13 +48,13 @@ y = 100(no)
-x = (123456789e123456789).conjugate()
-x = 123456789j.real
-x = 123456789.123456789j.__add__(0b1011.bit_length())
+x = .1.is_integer()
+x = 1..imag
+x = 1E+1.imag
+x = 1E-1.real
+x = 0.1.is_integer()
+x = 1.0.imag
+x = 1e1.imag
+x = 1e-1.real
+x = 123456789.123456789.hex()
+x = 123456789.123456789E123456789.real
+x = 123456789E123456789.conjugate()
+x = 123456789.123456789e123456789.real
+x = 123456789e123456789.conjugate()
+x = 123456789J.real
+x = 123456789.123456789J.__add__(0b1011.bit_length())
x = 0xB1ACC.conjugate()
@ -79,13 +79,13 @@ y = 100(no)
```py
x = 123456789.bit_count()
x = (123456).__abs__()
x = .1.is_integer()
x = 1..imag
x = 1E+1.imag
x = 1E-1.real
x = 0.1.is_integer()
x = 1.0.imag
x = 1e1.imag
x = 1e-1.real
x = 123456789.123456789.hex()
x = 123456789.123456789E123456789.real
x = 123456789E123456789.conjugate()
x = 123456789.123456789e123456789.real
x = 123456789e123456789.conjugate()
x = 123456789J.real
x = 123456789.123456789J.__add__(0b1011.bit_length())
x = 0xB1ACC.conjugate()