How to find the value closest to negative infinity in Python?

Although infinity doesn't have a concrete representation, the closest number to negative infinity is represented as return value of float() function with '-inf' as argument

>>> a=float('-inf')
>>>
-inf
Updated on: 2020-03-02T10:18:38+05:30

281 Views

Advertisements
8