I am a beginner in android. I am developing a Sales related app in which I need to do lots of calculations. I am confused which Variables to use for processing Prices, Discounts etc.
Currently I am storing Price as INTEGER. E.g. 180 Rs ---> 18000 Paise & while Showing I simple divide it by 100.
But I want to show price/discounts upto 2 decimal places like 150.50 Rs or 20.50Rs. What should I use? A float Or A Double or Anything else? Please help me out... Thanks...