TBC Classic LUA Text (Short) not returning correct format? #1329


Open
  • cham_wg created this issue May 25, 2021

    Hi,

     

    When I use this for a LUA text for Health:

     

     

    return Short(HP(unit))

     


    Per the documentation, this should display health like this: 4303 HP would display as 4.3K

     

    However, it's displaying as 4303. It's not abbreviating the health and adding K at the end. Per the documentation it should do this. 

     

    Thanks

  • nebula169 posted a comment May 27, 2021

    What documentation? Values below 10,000 are left as is

  • cham_wg posted a comment May 27, 2021

    https://www.wowace.com/projects/pitbull-unit-frames-4-0/pages/lua-texts

     

    Short(number,format)Shortens the number e.g. 1234 becomes 1.23k. If format is true then calls the format function for you and returns a single pre-formatted string. Otherwise returns the format string and the number.

     

    documentation literally references a value below 10,000...

     

     

    4303 should be 4.3k. 


To post a comment, please login or register a new account.