System::Decimal::operator bool 方法

Decimal::operator bool method

将当前对象所表示的值转换为布尔值。

System::Decimal::operator bool() const

ReturnValue

如果当前对象表示的值不为 0,则为 true;否则为 false。

另见