diff --git a/src/packages/math_basic.rs b/src/packages/math_basic.rs index e8b267fb..f31e64dd 100644 --- a/src/packages/math_basic.rs +++ b/src/packages/math_basic.rs @@ -211,6 +211,8 @@ mod float_functions { mod float_funcs { use crate::parser::FLOAT; use crate::plugin::*; + #[cfg(feature = "no_std")] + use num_traits::float::Float; #[export_fn] pub fn floor(x: FLOAT) -> FLOAT {