formatN function

Format Numbers Keeping Classes Distinguishable