I'm coding a program and need to find out how to assing 1.5 percent to a constant.
I know the following but I guess I'm getting confused on how to write 1.5 precent so if
1%(0.??) 1.5%(?.??)
10% (0.10)
25% (0.25)
90% (0.90)
how do I write it???
Printable View
I'm coding a program and need to find out how to assing 1.5 percent to a constant.
I know the following but I guess I'm getting confused on how to write 1.5 precent so if
1%(0.??) 1.5%(?.??)
10% (0.10)
25% (0.25)
90% (0.90)
how do I write it???
VB Code:
'Constant with a value of 1.5% Const dYourPercent As Double = 0.015
Ah...Thanks DKenny would 1.75% be
Const dYourPercent As Double = 0.0175 ???? Or how about 1/10 of a percent???
Also, something like..
VB Code:
Text1.Text = Format(0.01, "Percent")
You can just swap out 0.01 with a double variable, and it will format it by multiplying by 100, and adding the percent sign to the right of the number.
Well the percent won't be entered in a text box it will be a constant...
Text1.Text = Format(0.01, "Percent")
That is correctQuote:
Ah...Thanks DKenny would 1.75% be
Const dYourPercent As Double = 0.0175 ????