SyntaxFix
Write A Post
Hire A Developer
Questions
Cast from string using float():
float()
>>> float('NaN') nan >>> float('Inf') inf >>> -float('Inf') -inf >>> float('Inf') == float('Inf') True >>> float('Inf') == 1 False