SyntaxFix
Write A Post
Hire A Developer
Questions
Another, less convenient, way to do it is to use Decimal class:
Decimal
from decimal import Decimal pos_inf = Decimal('Infinity') neg_inf = Decimal('-Infinity')