formatter.py : Implemented class to determine format of valid number