LogicalCalculation class
dart中逻辑计算类-只涉及简单加减乘除
Constructors
- LogicalCalculation.new({int point = 0, num? initValue})
-
默认构造函数
point
默认计算精度及返回小数点位数initValue
初始值
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalValue → num
-
no setter
Methods
-
add(
num val) → LogicalCalculation - 加法运算
-
minus(
num val) → LogicalCalculation - 减法运算
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDouble(
{int point = 2}) → double -
结果转至 double
point
结果取舍位数 -
toInt(
) → int - 结果转至 int
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited