mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-06-23 11:11:23 +02: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 {
|
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…
x
Reference in New Issue
Block a user