Floating point arithmetic is nondeterministic, so blockchain network may not reach agreement on the state of the chain.
I am using the following code in my smart contract to calculate roots:
let mint_value = (juror_stake as f64).powf(0.8) as u128 + 1;
Are such codes allowed? If not how to do floating-point arithmetic.