StringNumericExtension extension

on

Methods

asInt() int

Available on String, provided by the StringNumericExtension extension

asSatsInt() int

Available on String, provided by the StringNumericExtension extension

assumes the string is already in sats.
toCommaString({String comma = ','}) String

Available on String, provided by the StringNumericExtension extension

takes a numeric string and inserts commas
toDouble() double

Available on String, provided by the StringNumericExtension extension

toSats([int divisibility = 8]) int

Available on String, provided by the StringNumericExtension extension

assumes the string is an amount