logo

该视频仅会员有权观看

立即开通课程「Flutter 移动端应用开发实践」权限。

¥
199
/ 年

Dart 语言的内置类型:数字(int, double)

  • In the Dark programming language, there are two numeric types: int for integers and double for double-precision floating-point numbers.
  • A variable named total lix is assigned the integer value of 3000 and its type is inferred as int.
  • After performing an addition operation, total lix increments by one, resulting in the output showing 3001, reinforcing that total lix is of type int.
  • A constant named total amount is declared with the value of 3000.0, and its runtime type is shown as double, indicating that it is a double-precision floating-point variable.