ReturnsDocumentation Index
Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
Use this file to discover all available pages before exploring further.
a * b (mod n).
ReturnsDocumentation Index
Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
Use this file to discover all available pages before exploring further.
a * b (mod n).
pub fn u256_mul_mod_n(a: u256, b: u256, n: NonZero) -> u256
use core::math::u256_mul_mod_n;
let result = u256_mul_mod_n(17, 23, 29);
assert!(result == 14);
Was this page helpful?