Click here to Skip to main content
15,890,995 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have total records 128 or any number.
My Requirement is need to get remaining numbers from the divided number by 25.

example : 128/25 = 5 => remaining numbers 126,127,128

that i need to get 126 from remaining values

What I have tried:

I have tried but not working
var num = 128/25;

num = Math.round(num);
num= (num*25);
    


alert(num);
Posted
Updated 8-Aug-17 1:24am
Comments
Patrice T 8-Aug-17 6:51am    
Please post exact requirement.
karthikans 8-Aug-17 7:07am    
You need the remainder of the number or, top list ? please post it clearly..

1 solution

What's wrong in iterating from (num+1) to the original input (128 in your example)?
 
Share this answer
 
Comments
DGKumar 8-Aug-17 8:12am    
num+1 is working for me
Thank you
CPallini 8-Aug-17 11:37am    
You are welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900