|
-
Mar 9th, 2010, 10:33 PM
#1
Thread Starter
Junior Member
[RESOLVED] Format variable as percentage?
I'm fairly new to Visual basic, I'm taking an intro class on it in college and need some help on one of my assignments.
I'm using visual basic 2008 express edition.
I'm creating a program that calculates the amount of tip to tip on services rendered based on the bill amount and percentage of the tip. I have the form set up and I'm working on my code.
when I test it everything works fine except my answer is "Tip the taxi driver $300.00"
I need the percentage of tip amount to be recognized as a percentage in the code.
20.00 * 15 = 300 is what I'm getting, I need 20.00 * .015 = 3.00
If you need me to clarify please ask, I will also post my code if needed.
Thanks in advance!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|