number of digits after decimal

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2004
Posts: 257
Reputation: sam1 is an unknown quantity at this point 
Solved Threads: 1
sam1's Avatar
sam1 sam1 is offline Offline
Posting Whiz in Training

number of digits after decimal

 
0
  #1
Aug 13th, 2009
hi,

I am trying to display a decimal in a textbox as 10.23. right now it is shown as 10.2333.

i have created a function that removes the last two digits of the number but sometimes the number is 10.23 so when using this function it will remove the two digits ie 10..

is there anyway i could count the number of digits after decimal point then remove accordingly.

thanks
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,349
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 163
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: number of digits after decimal

 
0
  #2
Aug 13th, 2009
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC