Dart编程实例 - CompareTo 方法
void main() {
var a = 2.4;
print(a.compareTo(12));
print(a.compareTo(2.4));
print(a.compareTo(0));
}
void main() {
var a = 2.4;
print(a.compareTo(12));
print(a.compareTo(2.4));
print(a.compareTo(0));
}