Function Math Reals Class

FractionalPart

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

Signature (Visual Basic / VBA)

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

Code Example

    FractionalPart(4.6) = .6
    FractionalPart(-4.6) = -.6

Parameters

Parameter Description
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.

Notes & Version History

Note The IntegerPart function returns the integer part of a number.
Note The sign of the result is always the same as the sign of vNumber.