No Description

NumberFormat.data 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # value format result
  2. 0.0, "0.0", "0.0"
  3. 0.0, "0", "0"
  4. 0, "0.0", "0.0"
  5. 0, "0", "0"
  6. 0, "##0", "000"
  7. 12, "#.0#", "12.0"
  8. 0.1, "0.0", "0.1"
  9. 0.1, "0", "0"
  10. 5.5555, "0.###", "5.556"
  11. 5.5555, "0.0##", "5.556"
  12. 5.5555, "0.00#", "5.556"
  13. 5.5555, "0.000", "5.556"
  14. 5.5555, "0.0000", "5.5555"
  15. 12345.6789, '"#,##0.00"', '"12,345.68"'
  16. 12345.6789, '"#,##0.000"', '"12,345.679"'
  17. 12345.6789, '"£ #,##0.00"', '"£ 12,345.68"'
  18. 12345.6789, '"$ #,##0.000"', '"$ 12,345.679"'
  19. 5.6789, '"#,##0.00"', '"5.68"'
  20. 12000, '"#,###"', '"12,000"'
  21. 12000, '"#,"', '12'
  22. 12200000, '"0.0,,"', '12.2' // Scaling test
  23. 0.08, "0%", "8%"
  24. 0.8, "0%", "80%"
  25. 2.8, "0%", "280%"
  26. 125.74, '$0.00" Surplus";$-0.00" Shortage"', "$125.74 Surplus"
  27. -125.74, '$0.00" Surplus";$-0.00" Shortage"', "$-125.74 Shortage"
  28. -125.74, '$0.00" Surplus";$0.00" Shortage"', "$125.74 Shortage"
  29. 5.25, '# ???/???', "5 1/4" // Fraction
  30. 5.3, '# ???/???', "5 3/10" // Vulgar Fraction
  31. 5.25, '???/???', "21/4"
  32. 123456789, '(000) 0-0000-000', "(001) 2-3456-789"
  33. 123456789, '0 (+00) 0000 00 00 00', "0 (+00) 0123 45 67 89"
  34. 123456789, '0000:00:00', "12345:67:89"
  35. -123456789, '0000:00:00', "-12345:67:89"
  36. 1234567.89, '0000:00.00', "12345:67.89"
  37. -1234567.89,'0000:00.00', "-12345:67.89"