purrcision 0.2.1

decimals for nostd
Documentation
//! Work in Progress

#![warn(clippy::nursery)]
#![deny(
    unused,
    nonstandard_style,
    future_incompatible,
    missing_copy_implementations,
    missing_debug_implementations,
    missing_docs,
    clippy::pedantic,
    clippy::cargo,
    clippy::complexity,
    clippy::correctness,
    clippy::pedantic,
    clippy::perf,
    clippy::style,
    clippy::suspicious
)]
#![allow(clippy::multiple_crate_versions, dead_code)]

mod d32;

/// Adds two `u64` numbers together.
///
/// # Parameters
///
/// - `left`: The first number to add.
/// - `right`: The second number to add.
///
/// # Returns
///
/// The sum of `left` and `right`.
///
/// # Examples
///
/// ```
/// let result = purrcision::add(2, 3);
/// assert_eq!(result, 5);
/// ```
#[must_use]
pub const fn add(left: u64, right: u64) -> u64 {
    left + right
}

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

    #[test]
    fn it_works() {
        let result = add(2, 2);
        assert_eq!(result, 4);
    }
}