sqrtx 0.1.6

Square root calculation
Documentation
1
2
3
4
5
6
7
use thiserror::Error;

#[derive(Debug, Error)]
pub enum SqrtError {
    #[error("Cannot calculate the square root of a negative number: {0}")]
    NegativeNumber(f64),
}