Dart编程实例 - 数字 sign 属性
void main() {
int posNum = 10;
int negNum = -12;
int valZero = 0;
print(posNum.sign);
print(negNum.sign);
print(valZero.sign);
}
void main() {
int posNum = 10;
int negNum = -12;
int valZero = 0;
print(posNum.sign);
print(negNum.sign);
print(valZero.sign);
}