Questions tagged [decimals]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
65 views
+50

price conversion using chainlink ETHUSD price

I'm storing a product's USD value in contract. mapping (string => uint256) productUSD; For example, if it's $52 I'd store it as productUSD[_product] = 52; Now, when people paying in ETH, I want to ...