We help IT Professionals succeed at work.

Rounding to the nearest 200

I need to round a $ value to the nearest $200.00
Comment
Watch Question

Try dividiing by 200, rounding to 0 dec places, then multiplying up again

e.g.

dim f as double = 1245.66

f= 200 * (Math.Round (f/200) )
Most Valuable Expert 2011
Top Expert 2015

Commented:
@Paul_Harris_Fusion

Nice  = )
@kaufmed

Thanks!!!

Author

Commented:
Awesome thanks @Paul_Harris_Fusion