Trailing numbers in tooltip

Recommended Posts

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.

Share on other sites

oh yeah i forgot i made that palace lol

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... ^^

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

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

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

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.

Share on other sites
6 minutes ago, Nescio said:

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.

Even limiting to three decimal places could be worth it. I don't know how many places are shown in that figure, but it's an unsightly amount.

Share on other sites

@Nescio Yeah, I see about the trickle; but like @WhiteTreePaladin said, maybe it could be rounded to three decimal places?

Share on other sites

Yeah, that would be great, provided no unnecessary zeroes are added (e.g. 2.000 or 0.200 instead of 2 or 0.2).

Share on other sites

Hey, u can send me this palace?

Edited by borg-

Share on other sites
7 minutes ago, borg- said:

Hey, u can send me this palace?

I thinks it's already in ?

Share on other sites
5 minutes ago, stanislas69 said:

I thinks it's already in ?﻿

Nop

Share on other sites
9 minutes ago, Nescio said:

Tnx!!!

Well, it is not in the current version of the game.

Share on other sites

It's not used, but it has been present in the game for years; it was added in rP18939

Join the conversation

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

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.