[−][src]Crate bigint_base10
This crate contains the BigInteger
type.
The API is currently experimental and is subject to change.
Example
There are currently two ways of creating a BigInteger
.
Using a string literal.
// This is only necessary for 2015. extern crate bigint_base10; use bigint_base10::BigInteger; let my_int = BigInteger::new("123"); assert_eq!(format!("{}", my_int), "+123");
Using a vector of u8
values.
use bigint_base10::Sign; let digits = [1, 2, 3]; let my_int = BigInteger::from_digits(&digits, Sign::Positive); assert_eq!(format!("{}", my_int), "+123");
Structs
BigInteger | A type for arbitrarily-long representations of integer values. |
Enums
Sign | Sign indicating postivity of a value. |