小数位显示不正确

Decimal place is not showing right

这是我的代码,有 18 位小数

fn ft_metadata(&self) -> FungibleTokenMetadata {
        FungibleTokenMetadata {
            spec: FT_METADATA_SPEC.to_string(),
            name: String::from("Avrit fungible token"),
            symbol: String::from("AVRIT"),
            icon: None,
            reference: None,
            reference_hash: None,
            decimals: 18,
        }
    }

1×10^25 应该显示 1*10^7 个标记,但 ref finance 显示 1×10^19。我做得对吗?

你能post ref finance 的截图吗? link 重定向到他们的主页。

如果您还没有查看,这里有一些资源可能对您有所帮助:

A Note on Decimals

It is important to understand that decimals is only used for display purposes. All arithmetic inside the contract is still performed on integers, and it is the different user interfaces (wallets, exchanges, etc.) that must adjust the displayed values according to decimals.

NEAR FT Metadata Specs