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

Fractional Part Function
Math Reals Class

Public Function FractionalPart( _
    ByVal vNumber As Variant _
    ) As Variant

"Fractional Part Of Real Number"
Return the real number with its integer part removed.

    FractionalPart(4.6) = .6
    FractionalPart(-4.6) = -.6
See also:
    FractionalPartVerify Subroutine
    IntegerPart Function
Note: The IntegerPart function returns the integer part of a number.

vNumber: The real number whose fractional part is to be returned. Function returns Null if vNumber is Null or cannot be fixed up to a number.
Note: The sign of the result is always the same as the sign of vNumber.

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