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