Function largeint::largeint::new[][src]

pub fn new(digits: String, sign: Sign) -> LargeInt

Creates a new instance of LargeInt. It is strongly recommended that LargeInt creation is done through the new() function which will instantiate an instance of LargeInt safely, making the necessary corrections to the fields if necessary, or panicking if an invalid input was submitted. See above for examples of LargeInt creation.