Skip to content

Scientific number parser

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

EngosSoftware/scidec

Number converter from scientific notation

Crates.io MIT licensed Apache 2.0 licensed Contributor Covenant

Overview

This library converts the input text containing a number in scientific notation like:

1234.5678e-2

into a number, represented by the following tuple:

(sign, mantissa-hi-64-bits, mantissa-lo-64-bits, exponent)

Example

use scidec::{Number, number_from_string};

let result = number_from_string("1234.5678e-2");
match result {
  Number::Fin(false, 0, 12345678, -6) => {}
  _ => panic!()
}

License

Licensed under either of

at your option.

Contribution

Any contributions to scidec are greatly appreciated. All contributions intentionally submitted for inclusion in the work by you, shall be dual licensed as above, without any additional terms or conditions.

About

Scientific number parser

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
LICENSE-MIT

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages