Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specification


13 Conversions
13.1 Implicit conversions
13.1.2 Implicit numeric conversions
Paragraph 11 The implicit numeric conversions are: - 2 From sbyte to short, int, long, float, double, or decimal.
- 3 From byte to short, ushort, int, uint, long, ulong, float, double, or decimal.
- 4 From short to int, long, float, double, or decimal.
- 5 From ushort to int, uint, long, ulong, float, double, or decimal.
- 6 From int to long, float, double, or decimal.
- 7 From uint to long, ulong, float, double, or decimal.
- 8 From long to float, double, or decimal.
- 9 From ulong to float, double, or decimal.
- 10 From char to ushort, int, uint, long, ulong, float, double, or decimal.
- 11 From float to double.
Paragraph 21 Conversions from int, uint, or long to float and from long to double may cause a loss of precision, but will never cause a loss of magnitude. 2 The other implicit numeric conversions never lose any information.
Paragraph 31 There are no implicit conversions to the char type, so values of the other integral types do not automatically convert to the char type. |
Jagger Software Ltd |
Company # 4070126 |
VAT # 762 5213 42 |

