Signature (Visual Basic / VBA)
Public Function IntReal( _
ByVal vX As Variant _
) As Variant
Code Example
IntReal(2.4) = 2
IntReal(2) = 2
IntReal(.6) = 0
IntReal(0) = 0
IntReal(-.6) = -1
IntReal(-2) = -2
IntReal(-2.4) = -3
Parameters
| Parameter | Description |
|---|---|
| vX | The real number that is to be rounded-down to the nearest integer. Function returns Null if vX is Null or cannot be fixed up to a number. |
Notes & Version History
| Note | The Floor function is a more generalized version of IntReal. |
| Note | This function is similar to the Visual Basic Int function, except that this one supports three-valued logic. |