在C#中定义不同类型的数字 [英] Defining different types of numbers in C#
本文介绍了在C#中定义不同类型的数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您可以定义在C#各种方式的数字,
You can define a number in various ways in C#,
1F // a float with the value 1
1L // a long with the value 1
1D // a double with the value 1
双
我个人正在寻找这将在短
,但使问题的人一个更好的参考,有什么其他所有的修复后对一些字面即可申请?
personally I'm looking for which would a short
, however to make the question a better reference for people, what are all the other post-fix's to number literals you can apply?
推荐答案
这篇关于在C#中定义不同类型的数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文