Update by Xiyu Zhu

Adding tests and DecimalFormat.
Updated by Xiyu