int figureA = -93;
print(figureA.isNegative);
print(figureA.isFinite);
print(figureA.isInfinite);
double figureB = 64.742;
print(figureB.sign);
返回figureB運行時的類型spa
print(figureB.runtimeType);
print(figureB.hashCode);
int figureC = 13;
print(figureC.isOdd);
figureC是否爲偶數code
print(figureC.isEven);
返回figureC所佔存儲位blog
print(figureC.bitLength);
int figureA = -93;
print(figureA.abs());
返回figureA的字符串ci
print(figureA.toString());
用法二(figureB)rem
double figureB = 64.742;
print(figureB.toInt());
返回figureB的雙精度值字符串
print(figureB.toDouble());
print(figureB.ceilToDouble());
print(figureB.floorToDouble());
print(figureB.roundToDouble());
print(figureB.toStringAsFixed(2));
print(figureB.toStringAsPrecision(3));
int figureC = 31;
print(figureC.compareTo(20));
將figureC控制在指定區間的整數hash
print(figureC.clamp(20, 25));
print(figureC.toRadixString(16));
int figureD = 12;
print(figureD.gcd(18));
print(figureD.remainder(18));
print(figureD.toStringAsExponential(2));