Jump to content

Trailing numbers in tooltip


Recommended Posts

183739419_Screenshotfrom2019-05-0718-10-37.thumb.png.32da3624580c30079c8cf8a94173d379.png

As you can see the numbers under “Resource Trickle:” are quite ugly; they ought to be 0.59, −0.34, and −0.31. Is there a way to hide those trailing zeroes and nines? Also, the line-break ought to occur before the minus, not after.

Link to comment
Share on other sites

A while ago @WhiteTreePaladin suggested to set the precision, but I don't know if he or anyone else has a more concrete idea about that.

 

Spoiler

On 9/29/2018 at 6:04 PM, Gurken Khan said:

For starters, I'd like to suggest to not display numbers after the decimal point (for missing resources to buy a tech). The resources I have don't show fractions, so just do whatever rounding you use and show the integer; otherwise I think it can get quite ridiculous... ^^

1475258274_0AD-1960000000000000061.png.ad9550149971d3b6f25c94bbc5ae9f7f.png

On 10/1/2018 at 4:33 PM, WhiteTreePaladin said:

Probably not a bad idea - at least some precision should be set.

 

Link to comment
Share on other sites

Apparently 0 + 0.2 + 0.2 + 0.2 = 0.6000000000000001 and 0 − 0.1 − 0.1 − 0.1 = 0.30000000000000004:

Spoiler

1658112479_Screenshotfrom2019-05-0722-17-02.thumb.png.fa56963481e870b62e785c6837cce2c2.png

Rounding everything to the nearest integer won't work for me, because trickle changes in my 0abc mod can be as low as 0.005.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...