scientific 0.5.3

Arbitrary precision scientific number (no_std capable, in pure Rust)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::types::sci::Sci;

impl Sci {
  #[inline]
  pub(crate) fn shl_assign(&mut self, rhs: isize) {
    if !self.is_zero() {
      self.exponent += rhs;
    }
  }

  #[inline]
  pub(crate) fn shr_assign(&mut self, rhs: isize) {
    if !self.is_zero() {
      self.exponent -= rhs;
    }
  }
}