Class Module
86 Members
Math Reals Class
Entisoft Tools 2.0 Object Library · MathReals · 58 Functions · 5 Properties · 22 Subroutines
Declarations
Declarations
Mathematical functions related to Algebra and Arithmetic. These functions perform basic mathematical operations on real numbers as represented by any of the Visual Basic numeric data types. Copyright 1998 Entisoft
Section
Deg
Deg
"Radians Per Degree"
Property
E
E
Property whose constant numeric value is the base of natural logarithms.
Property
EulerGamma
Euler Gamma
Property whose constant numeric value is Euler's Constant.
Property
PI
PI
The constant Pi. The ratio of the circumference of a circle to its diameter.
Property
RPC
RPC
"Radians Per Circle" Also known as Pi / 2.
Property
Approx
Approx
"Approximate" Return True if two expressions are approximately equal.
Function
Ceiling
Ceiling
Ceiling of a real number. Number vNumber is rounded-up with precision vPrecision.
Function
Chi
Chi
"Hyperbolic Cosine Integral" Chi where A, X, and B are real numbers. Return 1 if A < X < B; .5 if X = A or X = B; 0 if X < A or X > B.
Function
DegreesToRadians
Degrees To Radians
Converts degrees to radians.
Function
DivideOffsetByOne
Divide Offset By One
"Divide Offset By One" Integer division offset by one (except that the function does accept floating-point numbers).
Function
DivideOnErrRtnZero
Divide On Err Rtn Zero
"Divide; On Error Return Zero" Divide two real numbers. Return 0 (zero) in case of division by zero and other errors.
Function
ExponentPart
Exponent Part
" Exponent Part Of Real Number" Return the exponential part of a real number.
Function
FixReal
Fix Real
"Fixed Part Of Real Number" Integer Part of a real number. Return the largest integer less than or equal to vNumber when vNumber is positive. Return the smallest integer greater than or equal to vNumber when vNumber is negative. Same as the IntegerPart function.
Function
Floor
Floor
Floor of a real number. Number vNumber is rounded-down with precision vPrecision.
Function
FractionalPart
Fractional Part
"Fractional Part Of Real Number" Return the real number with its integer part removed.
Function
IntegerPart
Integer Part
"Integer Part Of Real Number" Return the largest integer less than or equal to vNumber when vNumber is positive. Return the smallest integer greater than or equal to vNumber when vNumber is negative. Same as the FixReal function.
Function
IntegerPartVerify
Integer Part Verify
View VB6 signature, parameters, and usage notes.
Function
IntReal
Int Real
Floor of a real number. Return the largest integer less than or equal to vX.
Function
IntRealVerify
Int Real Verify
View VB6 signature, parameters, and usage notes.
Function
IsPentiumFlawed
Is Pentium Flawed
"Is Intel Pentium Chip Flawed" Returns True if Intel Pentium chip suffers from floating point division flaw; original version.
Function
IsPentiumFlawedAlt
Is Pentium Flawed Alt
"Is Intel Pentium Chip Flawed (Alternate)" Returns True if Intel Pentium chip suffers from floating point division flaw; alternate version.
Function
LogNReal
Log N Real
"Log Base N Of Real Number" Return the base Y logarithm of X, where both arguments are real numbers.
Function
LogNRealVerify
Log N Real Verify
View VB6 signature, parameters, and usage notes.
Function
Mantissa
Mantissa
"Mantissa Of Real Number" Return the mantissa of a real number.
Function
MantissaVerify
Mantissa Verify
View VB6 signature, parameters, and usage notes.
Function
Max2Real
Max 2 Real
" Maximum Of Two Real Number" Return the maximum of two numeric arguments. Returns argument on left (vX) if arguments are equal.
Function
Max2RealVerify
Max 2 Real Verify
View VB6 signature, parameters, and usage notes.
Function
Max2Variant
Max 2 Variant
" Maximum Of Two Variant Values" Return the maximum of two values. Returns argument on left (vX) if arguments are equal.
Function
Max2VariantVerify
Max 2 Variant Verify
View VB6 signature, parameters, and usage notes.
Function
Max3Real
Max 3 Real
" Maximum Of Three Real Numbers" Return the maximum of three numeric arguments. Returns the leftmost of the maximum arguments.
Function
Max3RealVerify
Max 3 Real Verify
View VB6 signature, parameters, and usage notes.
Function
Max3Variant
Max 3 Variant
" Maximum Of Three Variant Values" Return the maximum of three arguments. Returns the leftmost of the maximum arguments.
Function
Max3VariantVerify
Max 3 Variant Verify
View VB6 signature, parameters, and usage notes.
Function
MaxReal
Max Real
" Maximum Of Real Numbers" Return the maximum value of the numeric arguments. The arguments must contain strings or numbers, but not both. Function returns the leftmost of the maximum arguments.
Function
MaxRealVerify
Max Real Verify
View VB6 signature, parameters, and usage notes.
Function
Min2Real
Min 2 Real
" Minimum Of Two Real Numbers" Return the minimum of two numeric arguments. Returns argument on left if arguments are equal.
Function
Min2RealVerify
Min 2 Real Verify
View VB6 signature, parameters, and usage notes.
Function
Min2Variant
Min 2 Variant
" Minimum Of Two Variant Values" Return the minimum of two arguments. Returns argument on left if arguments are equal.
Function
Min2VariantVerify
Min 2 Variant Verify
View VB6 signature, parameters, and usage notes.
Function
Min3Real
Min 3 Real
" Minimum Of Three Real Numbers" Return the minimum of three numeric arguments. Returns the leftmost of the minimum arguments.
Function
Min3RealVerify
Min 3 Real Verify
View VB6 signature, parameters, and usage notes.
Function
Min3Variant
Min 3 Variant
" Minimum Of Three Variant Values" Return the minimum of three arguments. Returns the leftmost of the minimum arguments.
Function
Min3VariantVerify
Min 3 Variant Verify
View VB6 signature, parameters, and usage notes.
Function
MinReal
Min Real
" Minimum Of Real Numbers" Return the minimum value of the numeric arguments. The arguments must contain strings or numbers, but not both. Function returns the leftmost of the minimum arguments.
Function
MinRealVerify
Min Real Verify
View VB6 signature, parameters, and usage notes.
Function
ModAlt
Mod Alt
"Modulo (Alternate Definition)" or "Modulus" or "Remainder" Floating-point modulus of real numbers.
Function
ModAltVerify
Mod Alt Verify
View VB6 signature, parameters, and usage notes.
Function
ModOffsetByOne
Mod Offset By One
"Modulus Offset By One" Floating-point modulus of real numbers, offset by 1 (one).
Function
ModOffsetByOneVerify
Mod Offset By One Verify
View VB6 signature, parameters, and usage notes.
Function
ModStd
Mod Std
"Modulo (Standard Definition)" or "Modulus" or "Remainder" Floating-point modulus of real numbers.
Function
ModStdVerify
Mod Std Verify
View VB6 signature, parameters, and usage notes.
Function
ModSym
Mod Sym
"Symmetric Modulo" or "Symmetric Modulus" Floating-point symmetric modulus of real numbers.
Function
ModSymVerify
Mod Sym Verify
View VB6 signature, parameters, and usage notes.
Function
Percent
Percent
Returns X percent of Y.
Function
PercentChange
Percent Change
Percent increase of Y over X.
Function
PercentChangeVerify
Percent Change Verify
View VB6 signature, parameters, and usage notes.
Function
PercentOfTotal
Percent Of Total
Answers X is ? percent of Y.
Function
PercentOfTotalVerify
Percent Of Total Verify
View VB6 signature, parameters, and usage notes.
Function
PercentVerify
Percent Verify
View VB6 signature, parameters, and usage notes.
Function
RadiansToDegrees
Radians To Degrees
Converts radians to degrees.
Function
RoundToDigits
Round To Digits
Round the number vNumber to vDigits digits of accuracy.
Function
RoundToPrecision
Round To Precision
Round the number vNumber to the nearest vPrecision.
Function
StepFn
Step Fn
"Step Function" Returns 0 if X < 0; .5 if X = 0; 1 if X > 0.
Function
ApproxVerify
Approx Verify
View VB6 signature, parameters, and usage notes.
Sub
CeilingVerify
Ceiling Verify
View VB6 signature, parameters, and usage notes.
Sub
ChiVerify
Chi Verify
View VB6 signature, parameters, and usage notes.
Sub
DegreesToRadiansVerify
Degrees To Radians Verify
View VB6 signature, parameters, and usage notes.
Sub
DegVerify
Deg Verify
View VB6 signature, parameters, and usage notes.
Sub
DivideOffsetByOneVerify
Divide Offset By One Verify
View VB6 signature, parameters, and usage notes.
Sub
DivideOnErrRtnZeroVerify
Divide On Err Rtn Zero Verify
View VB6 signature, parameters, and usage notes.
Sub
EulerGammaVerify
Euler Gamma Verify
View VB6 signature, parameters, and usage notes.
Sub
eVerify
e Verify
View VB6 signature, parameters, and usage notes.
Sub
ExponentPartVerify
Exponent Part Verify
View VB6 signature, parameters, and usage notes.
Sub
FixRealVerify
Fix Real Verify
View VB6 signature, parameters, and usage notes.
Sub
FloorVerify
Floor Verify
View VB6 signature, parameters, and usage notes.
Sub
FractionalPartVerify
Fractional Part Verify
View VB6 signature, parameters, and usage notes.
Sub
MathBuiltInBenchmark
Math Built In Benchmark
View VB6 signature, parameters, and usage notes.
Sub
MathReals_Verify
Math Reals _ Verify
View VB6 signature, parameters, and usage notes.
Sub
PiVerify
Pi Verify
View VB6 signature, parameters, and usage notes.
Sub
RadiansToDegreesVerify
Radians To Degrees Verify
View VB6 signature, parameters, and usage notes.
Sub
RoundToDigitsVerify
Round To Digits Verify
View VB6 signature, parameters, and usage notes.
Sub
RoundToPrecisionVerify
Round To Precision Verify
View VB6 signature, parameters, and usage notes.
Sub
RPCVerify
RPC Verify
View VB6 signature, parameters, and usage notes.
Sub
Set1stIfNeg2ndIfPos
Set 1st If Neg 2nd If Pos
"Set First If Negative Or Set Second If Positive" Subroutine assigns positive values to one of the arguments. Subroutine assigns ( Absolute value of) negative values to the other argument.
Sub
StepFnVerify
Step Fn Verify
View VB6 signature, parameters, and usage notes.
Sub