Link to home
Start Free TrialLog in
Avatar of AndyC1000
AndyC1000

asked on

Java how to get remainder from calculation

Dear all,

How do I retrieve the remainder of the timestep_as_double calculation.

double timestep_as_double = 98/48;

i.e. the value of above calculation is 2.01466666, I want to pull out .0146666.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of dpearson
dpearson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial