In a table the amounts are saved without decimal points.
1 = 0.01, 10 = 0.10, 100 = 1.00, 1000 = 10.00.
I want to display it normal in vb.net how do I convert that to a regular decimal format?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the value is stored as a string in the database, you parse it to a number:
Then just convert the number to floating point, and divide by 100:
As the
/operator always does floating point division in VB, you can let it to an implicit conversion: