Proper spacing of numbers

  • A simple way to think about it is to display an extra space if a number is less than 10. This will not work if dealing with negative numbers or numbers greater than 99. That adds complexity to this method.
  • Resource printf operation in Java. This is a more comprehensive way and can be used to do lot's of different formatting.
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2023-06-19 - cathybareiss
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback