<-- Previous || Up || Next -->

Mantissa Function
Math Reals Class

Public Function Mantissa( _
    ByVal vX As Variant _
    ) As Variant

"Mantissa Of Real Number"
Return the mantissa of a real number.

Examples:
    Mantissa(1.23E4) = 1.23
    Mantissa(567000) = 5.67
    Mantissa(-78900) = 7.89
    Mantissa(.00123) = 1.23
    Mantissa(-.0123) = 1.23
See also:
    MantissaVerify Subroutine
    ExponentPart Function
    Sgn Function (Visual Basic)
vX: The real number whose mantissa is returned. Function returns Null if vX is Null or cannot be fixed up to a number.
Note: This function always returns either 0 (zero) or a positive number.
v1.5 BugFix: Corrected this function to return 0 (zero) when vX is 0 (zero), instead of generating a runtime error as it did in previous versions.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.