Programação
Fixed-Point Arithmetic
📖O que é
A method of representing fractional numbers using integers with an implicit decimal point at a fixed position, avoiding floating-point imprecision. On Solana, all token amounts use fixed-point: SPL tokens have a configurable decimals field (e.g., USDC uses 6 decimals, so 1 USDC = 1,000,000 smallest units). DeFi protocols use basis points (1/10,000), scaled integers, or WAD/RAY notation (10^18/10^27) for precise rate calculations without floating-point types.
Sua exploração
0 termos visitados no totalTermos relacionados explorados0/3
Termos Relacionados
Precision Loss / Rounding ErrorsSecurity
A class of numerical vulnerability where integer division discards fractional remainders, …
Ver termo →Checked MathSecurity
A family of Rust arithmetic methods — including checked_add, checked_sub, checked_mul, che…
Ver termo →Programa SPL TokenToken Ecosystem
The original Solana Program Library token program (TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623V…
Ver termo →