bigdecimalmath 0.1.0

Mathematical functions for the BigDecimal type
Documentation
1
2
3
4
5
6
7
8
9
use bigdecimal::BigDecimal;

pub type BigDecimalMathResult = Result<BigDecimal, BigDecimalMathError>;

#[derive(Debug, PartialEq)]
pub enum BigDecimalMathError {
    // A math error, i.e. divide by 0
    ArithmeticError(String)
}