954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Calculations, Variables and Constants - Please help

I am just starting Visual Basics and I was fine until I had to learn variables and calculations. I just received an F on my last project and was wondering how in the world I can go about learning variables and constants and declaration. How do they relate? On the following:

' Declare a named constant.
Const DISCOUNT_RATE_Decimal As Decimal = .15D

What does .15D stand for?:sad:

Mirasol
Newbie Poster
1 post since Feb 2007
Reputation Points: 10
Solved Threads: 0
 
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 
What does .15D stand for?:sad:

D is decimal
F is float
S is short
L is long
etc.

waynespangler
Posting Pro in Training
461 posts since Dec 2002
Reputation Points: 84
Solved Threads: 58
 

The D at the end of the line is simply a notation to say, "this is a decimal value"

Dukane
Posting Whiz in Training
295 posts since Oct 2006
Reputation Points: 45
Solved Threads: 29
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You