fp.from_felt
fn from_felt(val: felt252) -> T;Args
Returns
Examples
use orion::numbers::{FP16x16, FP16x16Impl, FixedTrait};
fn from_felt_example() -> FP16x16 {
// We can call `from_felt` function as follows .
FixedTrait::from_felt(190054)
}
>>> {mag: 190054, sign: false} // = 2.9Last updated