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

cutting off digits and rounding up/down

P: 1
I am looking for a function in visial that takes a string, containing a decimal, like 12.5958, and returns the string with x numbers of digits behind the comma with appropriate rounding.

like x = 3 --> 12.596
and x = 2 --> 12.60

I can write it myself, but I am hoping its out there already, savingme the time.

Jul 13 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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