You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
297 B
18 lines
297 B
10 years ago
|
try:
|
||
2 years ago
|
import json
|
||
8 years ago
|
except ImportError:
|
||
2 years ago
|
print("SKIP")
|
||
|
raise SystemExit
|
||
10 years ago
|
|
||
5 years ago
|
|
||
10 years ago
|
def my_print(o):
|
||
5 years ago
|
print("%.3f" % o)
|
||
|
|
||
10 years ago
|
|
||
5 years ago
|
my_print(json.loads("1.2"))
|
||
|
my_print(json.loads("1e2"))
|
||
|
my_print(json.loads("-2.3"))
|
||
|
my_print(json.loads("-2e3"))
|
||
|
my_print(json.loads("-2e+3"))
|
||
|
my_print(json.loads("-2e-3"))
|