2013-02-01 28 views
1

Dart虛擬機中是否有其他人存在此問題?出了什麼問題?在dart虛擬機上使用math.pow()的奇怪行爲

import 'dart:math' as math; 

void main() { 
    print (math.pow(2, 60)); // -> 1152921504606846976 
    print (math.pow(2, 61)); // -> 2305843009213693952 
    print (math.pow(2, 62)); // -> -4611686018427387904 
    print (math.pow(2, 63)); // -> -9223372036854775808 
    print (math.pow(2, 64)); // -> 18446744073709551616 
} 

回答