Help Center›AfxNova
Numeric Datatypes
241 entries across 5 topics.
Topics
CComplex Class
100 members
CDEC Class
14 members
CInt96 Class
10 members
CMoney Class
12 members
Complex Numbers Procedures
100 members
All entries
CComplex 102
ArcCosHCalculates the inverse hyperbolic cosine.ArcTanHReturns the inverse hyperbolic tangent of a number.CAbsReturns the magnitude of this complex number.CAbs2Returns the squared magnitude of this complex number, otherwise known as the complex norm.CAbsSqrReturns the absolute square (squared norm) of a complex number.CACosReturns the complex arccosine of this complex number.CACosHReturns the complex hyperbolic arccosine of this complex number.CACosHRealReturns the complex arccosine of this complex number.CACosRealReturns the complex arccosine of a real number.CACotReturns the complex arccotangent of this complex number.CACotHReturns the complex hyperbolic arccotangent of this complex number.CACscReturns the complex arccosecant of this complex number.CACscHReturns the complex hyperbolic arccosecant of this complex number.CACscRealReturns the complex arccosecant of a real number.CAddAdds a complex number.CAddImagAdds an imaginary number.CAddRealAdds a real number.CArcCosReturns the complex arccosine of this complex number.CArcCosHReturns the complex hyperbolic arccosine of this complex number.CArcCosHRealReturns the complex arccosine of this complex number.CArcCosRealReturns the complex arccosine of a real number.CArcCotReturns the complex arccotangent of this complex number.CArcCotHReturns the complex hyperbolic arccotangent of this complex number.CArcCscReturns the complex arccosecant of this complex number.CArcCscHReturns the complex hyperbolic arccosecant of this complex number.CArcCscRealReturns the complex arccosecant of a real number.CArcSecReturns the complex arcsecant of this complex number.CArcSecHReturns the complex hyperbolic arcsecant of this complex number.CArcSecRealReturns the complex arcsecant of a real number.CArcSinReturns the complex arcsine of this complex number.CArcSinHReturns the complex hyperbolic arcsine of this complex number.CArcSinRealReturns the complex arcsine of a real number.CArcTanReturns the complex arctangent of this complex number.CArcTanHReturns the complex hyperbolic arctangent of this complex number.CArcTanHRealReturns the complex hyperbolic arctangent of a real number.CArgReturns the argument of this complex number.CArgumentReturns the argument of this complex number.CASecReturns the complex arcsecant of this complex number.CASecHReturns the complex hyperbolic arcsecant of this complex number.CASecRealReturns the complex arcsecant of a real number.CASinReturns the complex arcsine of this complex number.CASinHReturns the complex hyperbolic arcsine of this complex number.CASinRealReturns the complex arcsine of a real number.CAST operatorsConverts a **CComplex** into another data type.CATanReturns the complex arctangent of this complex number.CATanHReturns the complex hyperbolic arctangent of this complex number.CATanHRealReturns the complex hyperbolic arctangent of a real number.CConjReturns the complex conjugate of this complex number.CConjugateReturns the complex conjugate of this complex number.CCosReturns the complex cosine of this complex number.CCosHReturns the complex hyperbolic cosine of this complex number.CCotReturns the complex cotangent of this complex number.CCotHReturns the complex hyperbolic cotangent of this complex number.CCscReturns the complex cosecant of this complex number.CCscHReturns the complex hyperbolic cosecant of this complex number.CDivDivides by a complex number.CDivImagDivides by an imaginary number.CDivRealDivides by a real number.CExpReturns the complex exponential of this complex number.CFromPolarCoordinatesReturns the square root of the complex number z. The branch cut is the negative real axis. The result always lies in the right half of the complex plane. Example: DIM cpx AS CComplex = CComplex(2, 3) PRINT cpx.CSqrt Output: 1.67414922803554 +0.895977476129838 * i Compute the square root of -1: DIM cpx AS CComplex = CComplex(-1) PRINT cpx.CSqr Output: 0 +1.0 * i // Make a complex number from polar coordinatesCImagGets/sets the imaginary part of a complex number.CInverseReturns the inverse, or reciprocal, of a complex number.CLogReturns the complex natural logarithm (base e) of this complex number.CLog10Returns the complex base-10 logarithm of this complex number.CLogAbsReturns the natural logarithm of the magnitude of a complex number.CMagnitudeReturns the magnitude of this complex number.CModReturns the modulus of a complex number.CModulusReturns the modulus of a complex number.CMulMultiplies by a complex number.CMulImagMultiplies by an imaginary number.CMulRealMultiplies by a real number.CNegNegates the complex number.CNegateNegates the complex number.CNegativeNegates the complex number.CNormReturns the squared magnitude of this complex number, otherwise known as the complex norm.CNthRootReturns the kth nth root of a complex number where k = 0, 1, 2, 3,...,n - 1.Comparison operatorsCompares complex numbers.ConstructorCPhaseReturns the argument of this complex number.CPolarSets the complex number from the polar representation.CPowReturns this complex number raised to a complex power or to a real number.CRealGets/sets the real part of a complex number.CReciprocalReturns the inverse, or reciprocal, of a complex number.CRectUses the cartesian components (x,y) to set the real and imaginary parts of the complex number.CSecReturns the complex secant of this complex number.CSecHReturns the complex hyperbolic secant of this complex number.CSetUses the cartesian components (x,y) to set the real and imaginary parts of the complex number.CSgnReturns the sign of this complex number.CSinReturns the complex sine of this complex number.CSinHReturns the complex hyperbolic sine of this complex number.CSqrReturns the square root of a complex number.CSqrtReturns the square root of a complex number.CSubSubtracts a complex number.CSubImagSubtracts an imaginary number.CSubRealSubtracts a real number.CSwapExchanges the contents of two complex numbers.CTanReturns the complex tangent of this complex number.CTanHReturns the complex hyperbolic tangent of this complex number.IsInfDetermines whether the argument is an infinity.IsInfinityDetermines whether the argument is an infinity.Math operatorsAdd, subtract, multiply or divide complex numbers.Operator LETAssigns a value to a **CComplex** variable.
CDEC 14
CAST operatorsConverts a **CDEC** into another data type.Comparison operatorsCompares decimal numbers.DecAbsReturns the absolute value of a decimal data type.DecFixReturns integer portion of a decimal data type.DecIntReturns integer portion of a decimal data type.DecRoundRounds the DECIMAL to a specified number of decimal places.IsSignedReturns true if this number is signed or false otherwise.IsUnsignedReturns true if this number is unsigned or false otherwise.Math operatorsAdd, subtract, multiply or divide decimal numbers.Operator *Returns the address of the underlying **CURRENCY** structure.Operator LETAssigns a value to a **CDEC** variable.ScaleReturns the scale of the DECIMAL number.SignReturns 0 if it is not signed of &h80 (128) if it is signed.ToVarReturns the currency as a VT_CY variant.
CInt96 10
Arithmetic operatorsAdd, subtract, multiply or divide currency numbers.Bitwise logical operatorsAND, EQV, IMP, MOD, OR, SHL, SHR, XOR.CAST operatorsConverts a `CInt96` into another data type.Comparison operatorsCompares `CInt96` numbers.IsSignedReturns true if this number is signed or false otherwise.IsUnsignedReturns true if this number is unsigned or false otherwise.Operator *Returns the address of the underlying `DECIMAL` structure.Operator LETAssigns a value to a `CInt96`variable.SignReturns 0 if it is not signed of &h80 (128) if it is signed.ToVarReturns the currency as a VT_CY variant.
CMoney 12
CAST operatorsConverts a **CMoney** into another data type.Comparison operatorsCompares currency numbers.FormatCurrencyFormats a currency into a string form.FormatNumberFormats a currency into a string form.GetFractionReturns the fractional component of a currency value.GetIntegerReturns the integer component of a currency value.Math operatorsAdd, subtract, multiply or divide currency numbers.Operator *Returns the address of the underlying **CURRENCY** structure.Operator LETAssigns a value to a **CMoney** variable.RoundRounds the currency to a specified number of decimal places.SetValuesSets the integer and fractional components.ToVarReturns the currency as a VT_CY variant.
Procedures 103
acoshCalculates the inverse hyperbolic cosine.asinhCalculates the inverse hyperbolic sine.atanhCalculates the inverse hyperbolic tangent of a number.CAbsReturns the magnitude of a complex number.CAbs2Returns the squared magnitude of a complex number, otherwise known as the complex norm.CAbsSqrReturns the absolute square (squared norm) of a complex number.CACosReturns the complex arccosine of a complex number.CACosHReturns the complex hyperbolic arccosine of a complex number. The branch cut is on the real axis, less than 1.CACosHRealReturns the complex arccosine of a complex number.CACosRealReturns the complex arccosine of a real number.CACotReturns the complex arccotangent of a complex number.CACotHReturns the complex hyperbolic arccotangent of a complex number.CACscReturns the complex arccosecant of a complex number.CACscHReturns the complex hyperbolic arccosecant of a complex number.CACscRealReturns the complex arccosecant of a real number.CAddImagAdds an imaginary number.CAddRealAdds a real number.CArcCosReturns the complex arccosine of a complex number.CArcCosHReturns the complex hyperbolic arccosine of a complex number.CArcCosHRealReturns the complex arccosine of a complex number.CArcCosRealReturns the complex arccosine of a real number.CArcCotReturns the complex arccotangent of a complex number.CArcCotHReturns the complex hyperbolic arccotangent of a complex number.CArcCscReturns the complex arccosecant of a complex number.CArcCscHReturns the complex hyperbolic arccosecant of a complex number.CArcCscRealReturns the complex arccosecant of a real number.CArcSecReturns the complex arcsecant of a complex number.CArcSecHReturns the complex hyperbolic arcsecant of a complex number.CArcSecRealReturns the complex arcsecant of a real number.CArcSinReturns the complex arcsine of a complex number.CArcSinHReturns the complex hyperbolic arcsine of a complex number.CArcSinRealReturns the complex arcsine of a real number.CArcTanReturns the complex arctangent of a complex number.CArcTanHReturns the complex hyperbolic arctangent of a complex number.CArcTanHRealReturns the complex hyperbolic arctangent of a real number.CArgReturns the argument of a complex number.CArgumentReturns the argument of a complex number.CASecReturns the complex arcsecant of a complex number.CASecHReturns the complex hyperbolic arcsecant of a complex number.CASecRealReturns the complex arcsecant of a real number.CASinReturns the complex arcsine of a complex number.CASinHReturns the complex hyperbolic arcsine of a complex number.CASinRealReturns the complex arcsine of a real number.CATanReturns the complex arctangent of a complex number.CATanHReturns the complex hyperbolic arctangent of a complex number.CATanHRealReturns the complex hyperbolic arctangent of a real number.CConjReturns the complex conjugate of a complex number.CConjugateReturns the complex conjugate of a complex number.CCosReturns the complex cosine of a complex number.CCosHReturns the complex hyperbolic cosine of a complex number.CCotReturns the complex cotangent of a complex number.CCotHReturns the complex hyperbolic cotangent of a complex number.CCscReturns the complex cosecant of this complex number.CCscHReturns the complex hyperbolic cosecant of a complex number.CDivImagDivides by an imaginary number.CDivRealDivides by a real number.CExpReturns the complex exponential of this complex number.CFromPolarCoordinatesReturns the square root of the complex number z. The branch cut is the negative real axis. The result always lies in the right half of the complex plane. Example: DIM z AS _complex = (2, 3) z = CSqr(z) PRINT CStr(z) Output: 1.67414922803554 +0.895977476129838 * i Compute the square root of -1: DIM z AS _complex = (-1) z = CSqr(z) PRINT CStr(z) Output: 0 +1.0 * i // Make a complex number from polar coordinatesCGetImagReturns the imaginary part of a complex number.CGetRealReturns the real part of a complex number.CInverseReturns the inverse, or reciprocal, of a complex number.CLogReturns the complex natural logarithm (base e) of this complex number.CLog10Returns the complex base-10 logarithm of a complex number.CLogAbsReturns the natural logarithm of the magnitude of a complex number.CMagnitudeReturns the magnitude of a complex number.CModReturns the modulus of a complex number.CModulusReturns the modulus of a complex number.CMulImagMultiplies by an imaginary number.CMulRealMultiplies by a real number.CNegNegates a complex number.CNegateNegates a complex number.CNegativeNegates the complex number.CNormReturns the squared magnitude of a complex number, otherwise known as the complex norm.CNthRootReturns the kth nth root of a complex number where k = 0, 1, 2, 3,...,n - 1.Comparison operatorsCompares complex numbers.CPhaseReturns the argument of a complex number.CPolarSets the complex number from the polar representation.CPowReturns this complex number raised to a complex power or to a real number.CReciprocalReturns the inverse, or reciprocal, of a complex number.CRectUses the cartesian components (x,y) to set the real and imaginary parts of the complex number.CRetCSecReturns the complex secant of a complex number.CSecHReturns the complex hyperbolic secant of a complex number.CSetUses the cartesian components (x,y) to set the real and imaginary parts of a complex number.CSetImagSets the imaginary part of a complex number.CSetRealSets the real part of a complex number.CSgnReturns the sign of a complex number.CSinReturns the complex sine of a complex number.CSinHReturns the complex hyperbolic sine of a complex number.CSqrReturns the square root of a complex.CSqrRealReturns the complex square root of a real number.CSqrtReturns the square root of a complex number.CStrReturns a complex number as a formated string.CStrPolarReturns a complex number in polar form: Z = |Z| * exp(Arg(Z) * i)CSubImagSubtracts an imaginary number.CSubRealSubtracts a real number.CSwapExchanges the contents of two complex numbers.CTanReturns the complex tangent of a complex number.CTanHReturns the complex hyperbolic tangent of a complex number.hypot3Computes the value of sqr(x^2 + y^2 + z^2).IsInfIsInfinityDetermines whether the argument is an infinity.Math operatorsAdd, subtract, multiply or divide complex numbers.