By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,440 Members | 1,436 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,440 IT Pros & Developers. It's quick & easy.

how to limit digits after a decimal

P: 2
hello, i need to limit a number such as 51.23446 to only 51.234

or lets say 10.98223to only 10.98

help is much appreciated . thank you
May 28 '07 #1
Share this Question
Share on Google+
2 Replies

P: 1,806
you can use format strings (if you are using printf)

More information can be found here
May 28 '07 #2

P: 2
thanks a lot, i'll check out that link immediately.
May 28 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.