[V9.1] [INTERNATIONAL] [RNN] Materials menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    RawHulk's Avatar Member
    Reputation
    3
    Join Date
    Apr 2024
    Posts
    42
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    rounds a smaller value to a larger one (this is inconvenient)
    for example: 2185 shows 2.2k,
    It's probably better this way: 2.18k
    thanks

    [V9.1] [INTERNATIONAL] [RNN] Materials
  2. #17
    RNN's Avatar Legendary
    Reputation
    846
    Join Date
    Sep 2018
    Posts
    1,109
    Thanks G/R
    107/808
    Trade Feedback
    0 (0%)
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    I'm not a programmer and I've always been stuck trying to figure out the best way to represent numerical values. My goal when I created the plugin was to always use 1 decimal only (to make the text as small as possible) but without rounding it to the highest value, i.e. 2185 show it as 2.1K and not show 2.2k until the value is 2200. Unfortunately using formatting in ToString() seems to always do value rounding. I have reviewed the plugin and I have made changes using Math.Truncate and I think it already works as I wanted, I don't know of a better way right now.
    Updated Link
    If you prefer two decimal places instead of one, I could upload a modified plugin with that change tomorrow
    Last edited by RNN; 4 Weeks Ago at 08:31 AM.

  3. #18
    RawHulk's Avatar Member
    Reputation
    3
    Join Date
    Apr 2024
    Posts
    42
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Everything is fine, that's what I need, thank you

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [V9.0] [INTERNATIONAL] [RNN] TimersBarGR
    By RNN in forum TurboHUD Community Plugins
    Replies: 47
    Last Post: 07-04-2024, 12:34 PM
  2. [V9.0] [INTERNATIONAL] [RNN] Icount
    By RNN in forum TurboHUD Community Plugins
    Replies: 24
    Last Post: 06-08-2024, 01:39 AM
  3. [V9.0] [INTERNATIONAL] [RNN] OtherShrinePlugin
    By RNN in forum TurboHUD Community Plugins
    Replies: 137
    Last Post: 03-28-2024, 04:25 PM
  4. [V9.0] [INTERNATIONAL] [RNN] BLueLines
    By RNN in forum TurboHUD Community Plugins
    Replies: 28
    Last Post: 03-20-2022, 07:48 PM
  5. [V9.0] [INTERNATIONAL] [RNN] LogChat
    By RNN in forum TurboHUD Community Plugins
    Replies: 19
    Last Post: 01-08-2021, 09:14 AM
All times are GMT -5. The time now is 12:37 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search