How to multiply decimals in Python

1 Answer

0 votes
from decimal import Decimal

result = Decimal('2.47472') * Decimal('5.98')

print(result)  




'''
run:

14.7988256

'''

 



answered Jul 19, 2022 by avibootz

Related questions

3 answers 321 views
4 answers 387 views
387 views asked Jul 29, 2022 by avibootz
3 answers 302 views
302 views asked Jul 29, 2022 by avibootz
1 answer 222 views
2 answers 289 views
...