guiismiti
7th December 2014, 03:12
Hi,
Search for 1e+0 or scientific notation returned no results.
What I need is simple - disable scientific notation. As you can see, the value of 1000000 in the top right hud is being displayed in scientific notation as 1e+006.
808
That just doesn't look good.
These are the values I'm using in this case:
self.rank = 6;
level.rankpoints[7] = 1000000;
self.nextrankpoints = level.rankpoints[self.rank + 1];
and this is the code for the hud:
if(isdefined(self.hud_maxxp))
self.hud_maxxp destroy();
self.hud_maxxp = newClientHudElem(self);
self.hud_maxxp.x = -62;
self.hud_maxxp.y = 15;
self.hud_maxxp.alignx = "left";
self.hud_maxxp.aligny = "middle";
self.hud_maxxp.horzAlign = "right";
self.hud_maxxp.vertAlign = "top";
self.hud_maxxp.fontScale = 1;
self.hud_maxxp.label = (&"MP_SLASH");
self.hud_maxxp setValue(self.nextrankpoints);
self.hud_maxxp.sort = 9971;
Thanks in advance.
P.S. Coronel is not a typo, it's portuguese for Colonel.
Search for 1e+0 or scientific notation returned no results.
What I need is simple - disable scientific notation. As you can see, the value of 1000000 in the top right hud is being displayed in scientific notation as 1e+006.
808
That just doesn't look good.
These are the values I'm using in this case:
self.rank = 6;
level.rankpoints[7] = 1000000;
self.nextrankpoints = level.rankpoints[self.rank + 1];
and this is the code for the hud:
if(isdefined(self.hud_maxxp))
self.hud_maxxp destroy();
self.hud_maxxp = newClientHudElem(self);
self.hud_maxxp.x = -62;
self.hud_maxxp.y = 15;
self.hud_maxxp.alignx = "left";
self.hud_maxxp.aligny = "middle";
self.hud_maxxp.horzAlign = "right";
self.hud_maxxp.vertAlign = "top";
self.hud_maxxp.fontScale = 1;
self.hud_maxxp.label = (&"MP_SLASH");
self.hud_maxxp setValue(self.nextrankpoints);
self.hud_maxxp.sort = 9971;
Thanks in advance.
P.S. Coronel is not a typo, it's portuguese for Colonel.