-1

I am calculating the speed and number of calories burned in my app for which I have to convert this number 7.813094473379822E-4 to just 7. How should I convert this? Can anyone help me?

Bryan
  • 14,756
  • 10
  • 70
  • 125
sai pavan
  • 1
  • 4

1 Answers1

2

To get the integer value from a BigDecimalinstance you can use BigDecimal#intValue()

cjungel
  • 3,701
  • 1
  • 25
  • 19