Dart编程实例 - Truncate 方法
void main() {
double n1 = 2.123;
var value = n1.truncate();
print("The truncated value of 2.123 = ${value}");
}
void main() {
double n1 = 2.123;
var value = n1.truncate();
print("The truncated value of 2.123 = ${value}");
}