percent method

double percent(
  1. num from
)

Implementation

double percent(num from) {
  return (this / 100) * from;
}