Intern — Senior
Variable type determination when using numeric suffixes
livecode
Task condition
In C#, when declaring variables, you can use suffixes that indicate a specific numeric type. Specify what type each of the variables below will have, and demonstrate this using the GetType() method.
var x = 1.0f;
var y = 1d;
var z = 1m;
x.GetType(); // ?
// [System.Single]
y.GetType(); // ?
// [System.Double]
z.GetType(); // ?
// [System.Decimal]
Hint: pay attention to the suffixes f, d, and m.