Two Solana supply dashboards differ slightly? First check whether the string was converted to a floating-point number
When comparing the supply of the same token Mint on Solana, if the difference appears only in the last few digits, first check how the number is read into the system. getTokenSupply returns the raw integer amount, the decimals precision, and the already-scaled uiAmountString. The legacy uiAmount field is a floating-point number, and the official documentation recommends using the string field instead.
For example, one dashboard preserves the decimal string returned by the interface exactly, while another first converts it to a floating-point number and then formats it as a decimal. Even if both read the same original quantity, the displayed trailing digits may differ. Because floating-point representations can preserve only a limited number of significant digits, lower-order digits are more likely to be rounded when the value is large.
When checking, you can first compare the Mint address and the returned context slot, then compare the amount and decimals. If the raw fields match, investigate formatting first. To calculate a change in supply, keep the original integer strings, subtract using exact integers, and then scale by decimals. For display, you can retain uiAmountString directly to avoid an unnecessary floating-point conversion.
Original source: https://solana.com/developers/docs/rpc/http/gettokensupply