[Solved] How to get integer of a value? [closed]


if you want decimal part do this .

double value = 1.25;
int i = (int)value;

if you want to round value , do this

Math.round(value);

8

solved How to get integer of a value? [closed]