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