hopr_lib

Function f64_to_win_prob

Source
pub fn f64_to_win_prob(win_prob: f64) -> Result<[u8; 7], CoreTypesError>
Expand description

Encodes [0.0f64, 1.0f64] to [0x00000000000000, 0xffffffffffffff]