Adding perl helpers for converting numbers