divide method

List<int> divide(
  1. num a,
  2. num b
)

Implementation

List<int> divide(num a, num b) {
  return [(a / b).floor(), (a % b).floor()];
}