polkadot_
sdk_
frame
0.1.0
In polkadot_
sdk_
frame::
arithmetic::
helpers_
128bit
Functions
gcd
multiply_by_rational_with_rounding
split
sqrt
to_big_uint
polkadot_sdk_frame
::
arithmetic
::
helpers_128bit
Function
gcd
Copy item path
Settings
Help
Summary
pub fn gcd(a:
u128
, b:
u128
) ->
u128
Expand description
Helper gcd function used in Rational128 implementation.