How would you print a given currency value for Indian Locale (INR Currency)?

By | November 26, 2019

In this post we will talk and learn How would you print a given currency value for Indian Locale  (INR Currency) in java?

  • NumberFormat class is designed specifically for this purpose. Currency symbol & Rounding Mode is automatically set based on the locale using NumberFormat.
  • Lets see an example..

Output:: 

Amount = Rs.22.1215

You may also like:

Why Java is not 100% Object-oriented language?
What are the differences between 32-bit and 64-bit versions of Java?
Can we call static method with null object?
Can we override static method in Java?
What will be the output of following java program?
What is the difference Between java.util.Date and java.sql.Date in Java ?
What is difference between using Serializable & Externalizable Interfaces in Java?

Thanks for visiting our blog.
If you have any feedback or suggestion please feel free to drop in blow comment box. 

Leave a Reply

Your email address will not be published.