mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
fixed 5.01 can be type in calc it did remove the zero so the result was 5.1
See issue #2019 for more details. svn path=/trunk/; revision=25729
This commit is contained in:
parent
5e7eb24549
commit
bc9d01a54d
1 changed files with 10 additions and 10 deletions
|
@ -2882,16 +2882,16 @@ void calc_buffer_format(CALC *calc) {
|
|||
MessageBeep(0);
|
||||
}
|
||||
|
||||
if (point) {
|
||||
p = calc->buffer;
|
||||
n = _tcslen(p) - 1;
|
||||
while (*(p+n) &&
|
||||
*(p+n) != TEXT('.') &&
|
||||
*(p+n) == TEXT('0')) {
|
||||
calc->buffer[n] = TEXT('\0');
|
||||
n--;
|
||||
}
|
||||
}
|
||||
//if (point) {
|
||||
// p = calc->buffer;
|
||||
// n = _tcslen(p) - 1;
|
||||
// while (*(p+n) &&
|
||||
// *(p+n) != TEXT('.') &&
|
||||
// *(p+n) == TEXT('0')) {
|
||||
// calc->buffer[n] = TEXT('\0');
|
||||
// n--;
|
||||
// }
|
||||
//}
|
||||
|
||||
// remove leading zeros
|
||||
|
||||
|
|
Loading…
Reference in a new issue