Results 1 to 4 of 4

Thread: Disable scientific notation

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts

    Disable scientific notation

    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.

    Click image for larger version. 

Name:	shot0006.jpg 
Views:	52 
Size:	143.3 KB 
ID:	808

    That just doesn't look good.

    These are the values I'm using in this case:
    PHP Code:
    self.rank 6;
    level.rankpoints[7] = 1000000;
    self.nextrankpoints level.rankpoints[self.rank 1]; 
    and this is the code for the hud:
    PHP Code:
        if(isdefined(self.hud_maxxp))
            
    self.hud_maxxp destroy();

        
    self.hud_maxxp newClientHudElem(self);
        
    self.hud_maxxp.= -62;
        
    self.hud_maxxp.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.
    Last edited by guiismiti; 7th December 2014 at 04:46.
    set logfile 2

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •