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 177 views
4 answers 199 views
199 views asked Jul 29, 2022 by avibootz
3 answers 165 views
165 views asked Jul 29, 2022 by avibootz
1 answer 143 views
2 answers 154 views
...