tagion v1.0.3-rc1 (2023-12-18T15:15:15Z)
Dub
Repo
Currency.opBinary
tagion
script
Currency
Currency
Undocumented in source. Be warned that the author may not have intended to support it.
Currency
opBinary
(Currency rhs)
Currency
opBinary
(T rhs)
struct
Currency
(string _UNIT, long _BASE_UNIT = 1_000_000_000, long MAX_VALUE_IN_BASE_UNITS = 1_000_000_000)
const pure
Currency
opBinary
(
string
OP
T
)
(
T
rhs
)
if
(
isIntegral
!
T
&&
(
["+", "-", "*", "%", "/"].
canFind
(
OP
)
)
)
Meta
Source
See Implementation
tagion
script
Currency
Currency
functions
check_range
opBinary
opBinaryRight
opCast
opCmp
opEquals
opOpAssign
opUnary
toString
verify
manifest constants
UNIT
mixins
__anonymous
properties
axios
units
value
whole
static functions
toValue
variables
BASE_UNIT
UNIT_MAX
_units