add naive format function to decimal type