RxIntExtensions extension

Extension methods for Rx<int> to support arithmetic and financial operations on reactive values.

on

Methods

add(int value) → void

Available on Rx<int>, provided by the RxIntExtensions extension

Adds a value to the reactive integer and updates it.
addGST(double percent) → void

Available on Rx<int>, provided by the RxIntExtensions extension

Adds GST to the reactive integer.
applyPercent(double percent) → void

Available on Rx<int>, provided by the RxIntExtensions extension

Applies a percentage to the reactive integer (adds percentage).
discount(double percent) → void

Available on Rx<int>, provided by the RxIntExtensions extension

Applies a discount percentage to the reactive integer (subtracts percentage).
mul(int value) → void

Available on Rx<int>, provided by the RxIntExtensions extension

Multiplies the reactive integer by a value and updates it.
sub(int value) → void

Available on Rx<int>, provided by the RxIntExtensions extension

Subtracts a value from the reactive integer and updates it.
tax(double percent) → void

Available on Rx<int>, provided by the RxIntExtensions extension

Applies a tax percentage to the reactive integer (adds percentage).