I think `getNumOrds` needs to be casted to a double?