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 183 views
4 answers 209 views
209 views asked Jul 29, 2022 by avibootz
3 answers 169 views
169 views asked Jul 29, 2022 by avibootz
1 answer 147 views
2 answers 165 views
...