val 0.4.0

An arbitrary precision calculator language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

#[derive(Clone, Copy, Debug)]
pub struct Config {
  pub digits: NonZeroUsize,
  pub precision: u32,
  pub rounding_mode: Round,
}

impl Default for Config {
  fn default() -> Self {
    Self {
      digits: NonZeroUsize::new(16).unwrap(),
      precision: 1024,
      rounding_mode: Round::Nearest,
    }
  }
}