mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
fix regexp typo
This commit is contained in:
parent
cb9b0f075d
commit
ff7388a01c
@ -185,11 +185,11 @@ format_number(double value) {
|
||||
char buffer[128];
|
||||
|
||||
if (value < 0.01) {
|
||||
sprintf(buffer, "%0.4", value);
|
||||
sprintf(buffer, "%0.4f", value);
|
||||
} else if (value < 0.1) {
|
||||
sprintf(buffer, "%0.3", value);
|
||||
sprintf(buffer, "%0.3f", value);
|
||||
} else if (value < 1.0) {
|
||||
sprintf(buffer, "%0.2", value);
|
||||
sprintf(buffer, "%0.2f", value);
|
||||
} else if (value < 10.0) {
|
||||
sprintf(buffer, "%0.1f", value);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user