Cleanup numeric.c

It renames and adds some APIs.