:: String -> Int -package:hledger-lib -package:speculate -package:locators -package:safe -package:gpolyline package:hxt -is:exact

convert a string of hexadecimal digits into an Int
convert a string of digits into an Int