removeGST method

double removeGST(
  1. double percent
)

Removes GST from this number.

Example:

double priceWithGST = 110.0;
double result = priceWithGST.removeGST(10); // 100.0

Implementation

double removeGST(double percent) => this / (1 + percent / 100);