Flex 中的最大整数值是多少? [英] What is the maximum integer value in Flex?
本文介绍了Flex 中的最大整数值是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图显示一个数字:2893604342.00.但是,当我显示它时,它显示为:-2893604342.
I was trying to display a number: 2893604342.00. But, when i am displaying it it is displayed as: -2893604342.
以下是代码片段...
avg += int(totalData[i][col.dataField]);
我什至用 Number
替换了它,但它仍然显示相同的负数.
I have even replaced it with Number
, but it's still showing the same negative number.
int
或 Number
是否有问题请告诉我!
Please let me know whether there is any problem with int
or Number
!
推荐答案
最大值可以通过每个数字类型的静态属性访问:
The maximum values are accessible through each numeric type's static properties:
Number.MAX_VALUE
uint.MAX_VALUE
int.MAX_VALUE
(只需追踪它们.)
这篇关于Flex 中的最大整数值是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文