Why is it called a single in VB.net? I’m sure there is a good reason but it doesn’t seem intuitive to a non formally trained programmer like me.
Share
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.
BPAndrew’s question seems to be really ‘why float in C# and Single in VB.NET’, which noone actually answered, so here’s my 2p…
The use of ‘float’ in C# seems to be a throwback to its C/C++ heritage. ‘float’ still maps to the System.Single type in C#, so the keyword just exists for convenience. You could just as well declare the variable as ‘Single’ in C# the same as you do in VB.NET.
(And as stated above, naming them Single/Double actually makes more sense as they are single/double precision floating-point numbers.)