Skip to content

Commit

Permalink
Fix pretty printing for large numbers with different bases
Browse files Browse the repository at this point in the history
  • Loading branch information
PaddiM8 committed Mar 31, 2024
1 parent da93961 commit 7bce540
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kalk/src/kalk_value/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ pub mod with_rug;

#[cfg(feature = "rug")]
use rug::{Float, ops::Pow};
#[cfg(feature = "rug")]
pub use with_rug::*;

#[cfg(not(feature = "rug"))]
pub mod regular;
Expand Down Expand Up @@ -347,7 +345,7 @@ impl KalkValue {

sci_notation_real.to_string_format(format)
} else {
return String::new();
self.to_string_real(radix)
};

let sci_notation_imaginary = self.to_scientific_notation(ComplexNumberType::Imaginary);
Expand All @@ -368,7 +366,7 @@ impl KalkValue {

sci_notation_imaginary.to_string_format(format)
} else {
return String::new();
self.to_string_real(radix)
};

let mut output = result_str;
Expand Down

0 comments on commit 7bce540

Please sign in to comment.