mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-01-31 17:09:13 +01:00
Fixed negative scientific notation
This commit is contained in:
parent
2936a58620
commit
22ac36bb4a
@ -101,7 +101,9 @@ impl KalkNum {
|
||||
let value_string = match complex_number_type {
|
||||
ComplexNumberType::Real => self.to_string_real(),
|
||||
ComplexNumberType::Imaginary => self.to_string_imaginary(false),
|
||||
};
|
||||
}
|
||||
.trim_start_matches("-")
|
||||
.to_string();
|
||||
let trimmed = if value_string.contains(".") {
|
||||
value_string.trim_end_matches("0")
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user