mirror of https://gitlab.com/rnger/amath
Fixed localization bug
This commit is contained in:
parent
e9d3ae0fe4
commit
d7e979fb5c
|
@ -229,7 +229,7 @@ const char* PositionalNumeralSystem::GetText(double number)
|
|||
while (buf->RemoveTrailing('0'))
|
||||
;
|
||||
|
||||
buf->RemoveTrailing('.');
|
||||
buf->RemoveTrailing(fractionpoint);
|
||||
}
|
||||
|
||||
// Add exponent
|
||||
|
@ -446,7 +446,7 @@ const char* DecimalSystem::GetRealText(double value)
|
|||
buf->Append(out);
|
||||
while (buf->RemoveTrailing('0'))
|
||||
;
|
||||
buf->RemoveTrailing('.');
|
||||
buf->RemoveTrailing(fractionpoint);
|
||||
delete out;
|
||||
|
||||
return buf->GetString();
|
||||
|
|
Loading…
Reference in New Issue