refine code ,use js Number.toFixed to format