【Two reference price tables: one in yuan, one in fen】
A feed interface may scale decimals into integers, so when reading the data, you need to know how many decimal places it uses. For example, if the original value is 12345 and the number of decimal places is two, read it as 123.45. My understanding is that when exporting data, you should record the number of decimal places as well, so you can still verify it later even if you switch to another feed.
Follow me, and next time we’ll keep practicing how to read the units of on-chain reference data.
A feed interface may scale decimals into integers, so when reading the data, you need to know how many decimal places it uses. For example, if the original value is 12345 and the number of decimal places is two, read it as 123.45. My understanding is that when exporting data, you should record the number of decimal places as well, so you can still verify it later even if you switch to another feed.
Follow me, and next time we’ll keep practicing how to read the units of on-chain reference data.