Deep Bot - Twitch Streamer Assistant

Deep Bot => Feature Requests => Topic started by: Marstead on July 04, 2017, 02:06:50 AM

Title: @intcalc@ (Remove commas and return integers from calculations)
Post by: Marstead on July 04, 2017, 02:06:50 AM
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.