Questions tagged [decimal]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
161 views

fee basis points calculation in rust

This is more of a general rust question but feels like a common enough situation when writing solana contracts such that I feel justified in asking it here. Suppose I have a token with decimals set to ...
Rohan Kapur's user avatar
1 vote
2 answers
2k views

The bigest decimal place recomended for SPL-Token, and what type to use for it insteead of u64 to prevent overflows in math?

I have a question about token decimals, as I could not find a clear answer to it. Is there some recommended maximum of the token decimal on Solana, by default it has 9? If it will be bigger, for ...
Andriy Slisarchuk's user avatar