TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Archana Palani
NA
26
11.6k
how to convert string value into decimal in vb c#?
Mar 17 2015 11:00 PM
i am trying to convert textbox value into decimal for multiply purpose , tried the below code
copy_qty.Text = Q123.34;
copy_box.Text = 10;
string str_qty = copy_qty.Text.Substring(1);
decimal qty_val = decimal.Parse(str_qty);
int box_val = int.Parse(copy_box.Text);
decimal total = qty_val * box_val;
total_qty.Text = total.ToString();
i am getting 12334 in qty_val instead of 123.34,
how to parse string value into decimal ?
FYI,
i have also tried the below code but no luck,
string getnumber = "11.145";
decimal decinum = Convert.ToDecimal(getnumber);
getting 11145 instead of 11.145
any suggestion ?
Reply
Answers (
2
)
Argument Exception: "An item with the same key has already b
how do use join query of entities framework