Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Visual Basic .NET only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Visual Basic .NET
How to convert string to decimal
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
lenora
New Member
Join Date:
Sep 2010
Posts:
2
#1
How to convert string to decimal
Oct 7 '10, 09:48 PM
How to convert string to decimal ?
input - output
45 - 45.00
45.5 - 45.50
45.51 - 45.51
Thank you in advance
Joseph Martell
Recognized Expert
New Member
Join Date:
Jan 2010
Posts:
198
#2
Oct 8 '10, 11:59 PM
Check out these:
Type Conversion Functions - Visual Basic
http://msdn.microsoft.com/en-us/library/s2dy91zy.aspx
Learn more about
: Type Conversion Functions (Visual Basic)
Decimal.TryParse Method (System)
http://msdn.microsoft.com/en-us/library/system.decimal.tryparse.aspx
Converts the string representation of a number to its Decimal equivalent. A return value indicates whether the conversion succeeded or failed.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment