step method

double step(
  1. double a,
  2. double b
)

Implementation

double step(double a, double b) => a > b ? 1 : 0;