943,522 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 2708
  • VB.NET RSS
Aug 13th, 2009
0

number of digits after decimal

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 1
Posting Whiz
sam1 is offline Offline
300 posts
since Nov 2004
Aug 13th, 2009
0

Re: number of digits after decimal

Reputation Points: 562
Solved Threads: 367
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Global Hook Please Help
Next Thread in VB.NET Forum Timeline: Login System





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC