RxDoubleExtensions extension

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

on

Methods

add(double value) → void

Available on Rx<double>, provided by the RxDoubleExtensions extension

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

Available on Rx<double>, provided by the RxDoubleExtensions extension

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

Available on Rx<double>, provided by the RxDoubleExtensions extension

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

Available on Rx<double>, provided by the RxDoubleExtensions extension

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

Available on Rx<double>, provided by the RxDoubleExtensions extension

Multiplies the reactive double by a value and updates it.
removeGST(double percent) → void

Available on Rx<double>, provided by the RxDoubleExtensions extension

Removes GST from the reactive double.
roundTo(int decimals) → void

Available on Rx<double>, provided by the RxDoubleExtensions extension

Rounds the reactive double to a specified number of decimal places.
sub(double value) → void

Available on Rx<double>, provided by the RxDoubleExtensions extension

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

Available on Rx<double>, provided by the RxDoubleExtensions extension

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