tackler-core 0.19.0

Core components for Tackler accounting engine with native GIT SCM support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Tackler-NG 2019-2023
 * SPDX-License-Identifier: Apache-2.0
 */

use rust_decimal::Decimal;

/// Parse `Decimal` from str
///
/// # Errors
/// Return `Err` if str is not valid decimal (scale, value etc.)
pub fn from_str(num: &str) -> Result<Decimal, rust_decimal::Error> {
    Decimal::from_str_exact(num)
}