summaryrefslogtreecommitdiff
path: root/tests/float/builtin_float_abs.py
blob: c0935c6eec0d2e20e2c02912dc92c9729ba3c650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# test builtin abs function with float args

for val in (
    '1.0',
    '-1.0',
    '0.0',
    '-0.0',
    'nan',
    '-nan',
    'inf',
    '-inf',
    ):
    print(val, abs(float(val)))