vbnet round to nearnest thousand

The solution for “vbnet round to nearnest thousand” can be found here. The following code will assist you in solving the problem.

If intMyNumber Mod 1000 >= 500 Then
intResult = intMyNumber + 1000 – intMyNumber Mod 1000
Else
intResult = intMyNumber – intMyNumber Mod 1000
End If

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts