Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating values to the nearest x

Status
Not open for further replies.

MCubitt

Programmer
Mar 14, 2002
1,081
GB
I have to work out values to the nearest 16Mb.

So a value of 2 = 16, value of 16 = 16, value of 17 = 32, etc.

I think I need to round up value/16 regardless of the usual rule of .5 is up, otherwise down.

Any ideas, please?




Applications Support
UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top