Implement numeric functions and comparator predicates.