{"id":58205,"library":"sp-arithmetic","title":"sp-arithmetic","description":"Minimal fixed point arithmetic primitives and types for runtime.","status":"active","version":"28.0.1","language":"rust","source_language":null,"source_url":"https://github.com/paritytech/polkadot-sdk","tags":["arithmetic","fixed-point","substrate","runtime"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nsp-arithmetic = \"28.0.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add sp-arithmetic","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"FixedPointNumber","correct":"use sp_arithmetic::FixedPointNumber;"}],"quickstart":{"code":"use sp_arithmetic::FixedPointNumber;\n\nfn main() {\n    let a = sp_arithmetic::FixedI64::from(10);\n    let b = sp_arithmetic::FixedI64::from(3);\n    let c = a.checked_mul(&b).unwrap();\n    println!(\"{:?}\", c);\n}","lang":"rust","description":"Demonstrates fixed-point arithmetic using FixedI64."},"warnings":[],"env_vars":null,"search_vec":"'arithmet':3,7,13 'fix':5,15 'fixed-point':14 'minim':4 'point':6,16 'primit':8 'runtim':12,18 'sp':2 'sp-arithmet':1 'substrat':17 'type':10","created_at":"2026-06-16T16:15:16.835724+00:00","updated_at":"2026-06-16T16:15:16.835724+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://paritytech.github.io/polkadot-sdk/","github":"https://github.com/paritytech/polkadot-sdk","docs":"https://docs.rs/sp-arithmetic/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}