Number functions in NTGML

These come from math and trigonometry pages: