Author Topic: @intcalc@ (Remove commas and return integers from calculations)  (Read 1337 times)

0 Members and 1 Guest are viewing this topic.

Marstead

  • Padawan
  • **
  • Posts: 51
  • Karma: +1/-0
    • View Profile
  • Twitch Name: Marstead
Currently, values calculated with the @calc@ command that are higher than 999 will include comma separators (e.g. 1,000 instead of 1000). The @replace@ command doesn't seem to work when applied to a @calc@, so this can't be used to remove extraneous commas from calculations. Commas in these values can break them when used in other applications (*.csv files, etc) so it would be great to be able to request an integer without commas from a calculation as we're currently able to do for points with @intpoints@.

@intcalc@ would work identically to @calc@ but would return an integer with no comma separators.