I have a number like 6511 and I want to round it up to 7000. How do

I tell the computer to round the numbers to the thousands place. I

know how to round decimals but not whole numbers. Thanks for you

Please help!

## Recommended Answers

Jump to PostWhat would be the result if the number is 489?

Jump to PostTry

1000*((6511+500)\1000)

With a little playing around you should be able to roll your own Round function to round to an arbitrary digit.

## All 8 Replies

thines01
401
Postaholic
Team Colleague
Featured Poster

Reverend Jim
3,506
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster

adam_k
239
Master Poster

Reverend Jim
3,506
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster

Begginnerdev
256
Junior Poster

Reverend Jim
3,506
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster

adam_k
239
Master Poster

Reverend Jim
3,506
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.