0
Float with higher accuracy in python
Hi I have a string which need to be converted to number. I need with proper accuracy as float does not work for me. Which data type has more accuracy than float. https://sololearn.com/compiler-playground/cmJIXfslPnQF/?ref=app
2 Answers
+ 12
The next level of precision comes by using Decimal.
from decimal import Decimal
a = Decimal('1.1234567890123456789')
+ 3
Thank you đ