embedded-maths 0.2.0

No_std math functions for embedded Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: GPL-2.0-or-later
//! Euclidean division alias.

pub use super::div_euclid::div_euclid;

#[cfg(test)]
mod tests {
    use super::div_euclid;

    #[test]
    fn alias_matches_div_euclid() {
        assert_eq!(div_euclid(-5.0, 2.0), -3.0);
    }
}