I am trying to get the latest ETH price from the Chainlink priceFeed contract. The response shows up like this 171617306235 as a BigNumber. So there is a couple of issues for me to be solved.
1 - My local variables are uint256. How can I assign the Chainlink response ( int256 ) to a uint256 variable?
2 - As evident, some calculations need to be done on the Chainlink response to make it a human-readable ETH price. How can I achieve this goal? For instance, how I should read something like $1716.17 as the Ethereum price within my JS or Typescript file?
Thanks in advance