C#帮助。 [英] C# Help.
问题描述
我正在阅读C#for Dummies我想知道十进制变量可以表示10 / -28到10/28之间的数字是什么意思?
谢谢。
问候FUTURECIOAT。
<我不确定这意味着什么。它看起来像是一种表达精度和范围的有趣方式。
十进制可以表示从大约负十到28的功率到大约十加到功率28的数字(负数) 28位数字,最多28位正数),精度约为28位(如果表示为更多位数,
包括小数点后的数字,最不重要的数字将不准确) 。
https:// docs。 microsoft.com/en-us/dotnet/csharp/language-reference/keywords/decimal
I was reading C# for Dummies and I wanted to know what does it mean that a decimal variable can represent a number between 10/-28 and 10/28?
Thank you.
Greetings FUTURECIOAT.
I'm not exactly sure what that means either. It looks like a funny way of expressing the precision and range.
A decimal can represent a number from about minus ten to the power 28 to about plus ten to the power 28 (a negative number with 28 digits up to a positive number with 28 digits) and has a precision of about 28 digits (so if it's expressed as more digits, including those after the decimal place, the least significant ones won't be accurate).
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/decimal
这篇关于C#帮助。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!