Help Center

CInt96.Arithmetic operatorsoperator

Add, subtract, multiply or divide currency numbers.

Numeric Datatypesoperatordoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

OPERATOR + (BYREF int961 AS CInt96, BYREF int962 AS CInt96) AS CInt96
OPERATOR += (BYREF int96 AS CInt96)
OPERATOR - (BYREF int961 AS CInt96, BYREF int962 AS CInt96) AS CInt96
OPERATOR -= (BYREF int96 AS CInt96)
OPERATOR * (BYREF int961 AS CInt96, BYREF int962 AS CInt96) AS CInt96
OPERATOR *= (BYREF int96 AS CInt96)
OPERATOR / (BYREF int96 AS CInt96, BYVAL cOperand AS CInt96) AS CInt96
OPERATOR /= (BYREF cOperand AS CInt96)

Remarks

The version OPERATOR - (BYREF int96 AS CInt96) AS CInt96 changes the sign of a decimal number.

Examples

DIM int96 AS CInt96 = 1234567890 int96 = int96 + 111 int96 = int96 - 111 int96 = int96 * 2 int96 = int96 / 2 int96 += 123 int96 -= 123 int96 *= 2 int96 /= 2

DIM int96 AS CInt96 = 123 int96 = -int96

Reference

  • Documented in Numeric Datatypes/CInt96 Class.md
  • Topic: CInt96 Class