Forum Discussion

Raju506315's avatar
Raju506315
Occasional Contributor
5 years ago
Solved

Decimal value converted to next number(int)

Decimal value converted to next number(int) Example  Given decimal value is 3.0000 = repsult should ." 3" Given decimal value is 3.30000 = repsult should ." 4" Given decimal value is 3.10000 ...
  • ishan_07's avatar
    5 years ago

    Hello,
    You can use Math.ceil() to round off your value in higher side.

    First, you need to apply Math.ceil() on your decimal pointed value and then you can convert it into an integer so that you can get value in an integer