per method

double per(
  1. double percentage
)

Return the percentage of the given value

The percentage must be between 0 and 100

Implementation

double per(double percentage) {
  assert(percentage >= 0);
  assert(percentage <= 100);

  return this * percentage / 100;
}