Zum Inhalt springen
AppgineeringAppgineering
Shop
Schreibgeschützt8 Beiträge · 5,788 Aufrufe · Erstellt 04 May 2020, 19:33

Formatting string issue: always 3 decimals

Archiviert: Diskussion auf Discord verlagertDiscord
Jean-Christophe B.Ursprünglicher Verfasser
#1

Hi,

I'm not able to display specific decimals. ATVO display always 3 decimals.
I checked with the old FOX theme, same result.

Something have change? Is it a bug?

Normaly it will display one decimal like this:
View image on i.imgur.com

I try both latest stable and beta version.

Thx!

Nick ThissenAppgineering
#2

Thanks. I think this is because all the gap and interval bindings are 'special' bindings. If you select them in the 'Select Data Bindings' window you get several additional properties you can change for this binding. Therefore gaps don't return numeric values (which you can format), but they return text directly (which you cannot format in this way).

I can see if I can add a formatting option to the special binding properties instead.

Jean-Christophe B.
#3

Indeed Nick, I already changed the "Lap(s) Display" to have "+xL" instead of "+x Laps".
My goal is to have a narrow column for the gap.

Thanks for your quick reply ;)

Jean-Christophe B.
#5

Thx Manu ;)
My theme is not new so I already use this original script for DNS, DNF, PIT. But when I focus on two teams (or drivers) I have also live gap (also gap on mini standings... gaps everywhere ;) ).
If Nick can easily add a formatting option on those specials bindings... it will be more easy, clean, scriptless and more what you can expect for this feature :) If not, yes, I'll have to script this...

Jean-Christophe B.
#7

Add 'Seconds Format' to any gap/interval special bindings, which control the way the seconds portion of a gap time is formatted. For example, use the default "0.000" to get 3 decimals, or use "0.0" to get a single decimal, etc.

Thanks Nick it seems working.

On the other hand, I would like also to have on decimal with a normal data binding... and it doesn't work and idk why :(
I would like to have also one decimal for 'prevlap' (so no special data binding).
As you can see I have 3 decimals instead of one... Can you check on your side?

View image on i.imgur.com

View image on i.imgur.com

Thank you!

Nick ThissenAppgineering
#8

The laptime bindings are already converted to a 'formatted' time for you (otherwise it would give you the total seconds like 108.077 instead of 1:48.077). Maybe I can make these bindings into special bindings too where you can select some more formatting options.

Dieser Thread ist archiviert.

Neue Antworten finden auf Discord statt.

Auf Discord weiterlesen