Skip to content

Commit

Permalink
Fix new function
Browse files Browse the repository at this point in the history
  • Loading branch information
axiongsupra committed Dec 19, 2024
1 parent de0b413 commit f0b7605
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module std::fixed_point32 {
let unscaled_product = (val as u128) * (multiplier.value as u128);
// Check whether the value is too large.
assert!(unscaled_product <= MAX_U64, EMULTIPLICATION);
create_from_raw_value((product as u64));
create_from_raw_value((unscaled_product as u64))
}

/// Divide a u64 integer by a fixed-point number, truncating any
Expand Down

0 comments on commit f0b7605

Please sign in to comment.