Added a method to validate numerics.
Add a method to format number.

Signed-off-by: Guillaume Poirier-Morency <guillaumepoiriermorency@gmail.com>