Signature (Visual Basic / VBA)
Public Function IntegerPart( _
ByVal vNumber As Variant _
) As Variant
Code Example
IntegerPart(2.6) = 2
IntegerPart(2) = 2
IntegerPart(.4) = 0
IntegerPart(-.4) = 0
IntegerPart(-2.6) = -2
IntegerPart(-2.6E4) = -26000
Parameters
| Parameter | Description |
|---|---|
| vNumber | The real number whose integer part is returned. Function returns Null if vNumber is Null or cannot be fixed up to a number. |
Notes & Version History
| Note | The FractionalPart function returns the fractional part of a number. |
| Note | This function is similar to the Visual Basic Fix function, except that this one supports three-valued logic. |