parse_duration: do not use floating numbers but keep precision