Public Function FractionalPart( _
ByVal vNumber As Variant _
) As Variant FractionalPart(4.6) = .6
FractionalPart(-4.6) = -.6See also: FractionalPartVerify Subroutine
IntegerPart FunctionNote: 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.