version 5.5.3

force using '.' instead of ',' in PIString::fromNumber()
This commit is contained in:
2025-10-22 15:24:10 +03:00
parent 6c3c763934
commit 34bc322b9b
2 changed files with 5 additions and 2 deletions

View File

@@ -206,7 +206,10 @@ PIString PIString::dtos(const double num, char format, int precision) {
if (wr > 4) wr = 4;
f[2 + wr] = format;
f[3 + wr] = 0;
pisprintf(f, num);
char ch[256];
piZeroMemory(ch, 256);
snprintf(ch, 256, f, num);
return PIStringAscii(ch).replaceAll(',', '.');
}
#undef pisprintf