-3

I am trying this code

public static String getPageCountOnRespectiveTabs(String input) {
    int value = convertTabsTextToInteger(input);
    double newValue = value / 100;
    return returnNumberFromDecimalForPgNumberValidation(newValue);
}

The argument I pass is 5055 and I expect the newValue answer to be 50.55, but it is giving me 50.0 when I tried to debug and see the value. What is the issue?

Mark Rotteveel
  • 90,369
  • 161
  • 124
  • 175
Pratik P
  • 77
  • 3

0 Answers0