Jimbo99999
asked on
VB.net Get the Next Value of 10
Good Day
Experts:
I am having a bit of difficulty working through this seemingly "easy" idea I need to accomplish.
I have an integer variable and need to find the next multiple of 10. So 7 would be 10, 13 would be 20, 27 would be 30 and so on.
Can anyone help me with how I might be able to programatically figure this out?
Thanks,
jimbo99999
Experts:
I am having a bit of difficulty working through this seemingly "easy" idea I need to accomplish.
I have an integer variable and need to find the next multiple of 10. So 7 would be 10, 13 would be 20, 27 would be 30 and so on.
Can anyone help me with how I might be able to programatically figure this out?
Thanks,
jimbo99999
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok, that would be great...
Thanks
Thanks
Only see QuintainT comment .
Sorry about that.
Sorry about that.
hongjun's code looks like it should work so I'd go with that. (I'd have done it slighly differently, but no better...:O)
QuintainT deserves the effort too for the quick pseudocode posted.
ASKER
I split up the points as hongjun came up with the on paper logice and QuintainT for the code.
Thanks for your efforts,
jimbo99999
Thanks for your efforts,
jimbo99999
Open in new window