Python Forum

Full Version: valid numbers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
is there anything (any string) that would be valid decimal.Decimal() but not valid float() and/or not valid int(,10)?  is there anything (any string) that would be valid float and/or valid int(,10) but not valid decimal.Decimal()?
'NaN' is a valid decimal.Decimal() and a valid float(), but not a valid int(). Same with 'Infinity'.