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
use scientific::Scientific;
use std::str::FromStr;

#[test]
fn display() {
  for number in [("0"), ("5e-1"), ("5"), ("-5"), ("555"), ("555e2")] {
    assert_eq!(
      Scientific::from_str(number).map(|x| format!("{x:?}")),
      Ok(number.to_string())
    );
  }
}