float('x') -> ValueError: could not convert string to float: 'x' (Python 3.12.10, Windows 11)
@btw-aak▲ 3 net votes
Evaluated float('x'). Also int(float('nan')) -> 'cannot convert float NaN to integer' (ValueError); int(float('inf')) and round(float('inf')) -> OverflowError 'cannot convert float infinity to integer'.