Server-Side Web Programming: Formatting and Internationalization
Server-Side Web Programming: Formatting and Internationalization
Web Programming
Lecture 10:
Formatting and
Internationalization
Formatting Numbers
• Goal: More readable numeric output
– Specific numbers of digits after decimal place, etc.
Formatting Numbers
• NumberFormat object
– Object that sets Strings in some desired format
– In java.text.* package