## Dart编程实例 - Remainder 方法 ```dartvoid main() { var a = 10; var b = 17; print(a.remainder(2)); print(b.remainder(2));}```
## Dart编程实例 - round 方法```dartvoid main() { double n1 = 12.023; double n2 = 12.89; var value = n1.round(); print( value ); value = n2.round(); print( value );
## Dart编程实例 - toDouble 方法```dartvoid main() { int n1 = 2; var value = n1.toDouble(); print(Output = ${value});}```
## Dart编程实例 - toInt 方法```dartvoid main() { double n1 = 2.0; var value = n1.toInt(); print(Output = ${value});}```
## Dart编程实例 - toString 方法```dartvoid main() { int n1 = 2; var value = n1.toString(); print( value is String );}```
## Dart编程实例 - Truncate 方法```dartvoid main() { double n1 = 2.123; var value = n1.truncate(); print(The truncated value of 2.123 = ${value});}```
## Dart编程实例 - dart字符串```dartvoid main() { String str1 = this is a single line string; String str2 = this is a single line string; String str3 = this is a multiline line
## Dart编程实例 - dart字符串插值```dartvoid main() { int n=1+1; String str1 = The sum of 1 and 1 is ${n}; print(str1); String str2 = The sum of 2 and 2 is ${2+2}; print(
## Dart编程实例 - dart字符串属性 codeUnits```dartvoid main() { String str = Hello; print(str.codeUnits);}```
## Dart编程实例 - dart字符串属性 isEmpty```dartvoid main() { String str = Hello; print(str.isEmpty);}```