parseint/parsereal functions