Alias chart. To understand Single and Double, we can simply remember that float is the same thing as Single. One type is aliased to another at the language level.
float -> Singledouble -> Double
An example. This program creates an instance of the Single and Double types. It then prints their types to the console window. Then it does the same thing for the float and double types.
And This shows us that the Single type is the same as the float type, and the Double type is the same as the (lowercase) double type.
static void Main()
Single a = 1;
Double b = 1;
float a = 1;
double b = 1;
A discussion. The Single and Double types are precisely equivalent to the float and double types. It is more conventional for C-style language programmers to use float than Single.
Also Code written with float is less likely to confuse other programmers who might then introduce bugs.
A summary. This article doesn't provide useful examples for Single or Double. It demonstrates that these types are precisely equivalent to the float and double types.