Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下代码:
ulong num = ulong.Parse(Console.ReadLine()); ulong num1 = Math.Pow(num, 2);
这给了我以下错误:
错误 CS0266 无法将类型“double”隐式转换为“ulong”。存在显式转换(您是否缺少演员表?)
我究竟做错了什么?