Author Topic: Variables update  (Read 1307 times)

fireytoad

  • Newbie
  • *
  • Posts: 2
Variables update
« on: March 14, 2025, 02:50:26 AM »
Hello, would it be possible to have int64 and a decformat added.

Reason for int64 is some games have numbers bigger than an int32 can handle so they have to be converted to text or decimals.

There is a intformat option to add separators when writing out int's, but there isn't the same option for decimals

TIA FireyToad

RunePr1est

  • Newbie
  • *
  • Posts: 1
Re: Variables update
« Reply #1 on: March 14, 2025, 04:01:58 AM »
o7

Agreed this would be nice to have too.

Many thanks
rune

Terekhov

  • Newbie
  • *
  • Posts: 9
Re: Variables update
« Reply #2 on: March 14, 2025, 04:05:47 AM »
Int64 is really important for me - many values in Elite Dangerous journals can exceed 32 bits

A couple of extra format for display of decimals (digit group separators, and 1/2/3 decimal places) would be really handy.

Working around these things is painful....
« Last Edit: March 16, 2025, 02:08:28 AM by Terekhov »

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2861
Re: Variables update
« Reply #3 on: March 20, 2025, 11:18:13 AM »
Due to the way the integer features are used within VA, Int64 would require yet another data type.   That would need to be put on the backburner for another time.

In the meantime, I have added {DECFORMATUSER}, {DECINVFORMATUSER} {INTFORMATUSER} (and their default value counterparts) to the token parsing process.  They will allow you to pass in C# format strings for each type.  For instance, to have a decimal formatted without decimal places and with commas, you would use N0:  {DECFORMATUSER:myDecimal:N0}.

This will be in the next beta.


On a side note, {INTFORMAT:} is old and rigid - needs to be deprecated :P

fireytoad

  • Newbie
  • *
  • Posts: 2
Re: Variables update
« Reply #4 on: March 20, 2025, 11:25:19 AM »
Thanks Gary  :)