Function that converts an expression into an integer value
Syntax CInt (expression)
Fractional values will be rounded to create a whole integer number, Tie-breaking: If the fraction is less than or equal to .5, the result will round down.
If the fraction is greater than .5, the result will round up.
CInt cannot handle Null values.
Dim intDemo
intDemo = CInt(45.76)
>45
PowerShell equivalent, converting a String to an int:
$num = "11.64"
$num = [int] $num
“A man is like a fraction whose numerator is what he is and whose denominator is what he thinks of himself. The larger the denominator, the smaller the fraction” ~ Leo Tolstoy
CBool - Convert to boolean.
CByte - Convert to byte.
CCur - Convert to currency (number).
CDate - Convert to Date.
CDbl - Convert to Double (number).
CLng - Convert to Long (number).
Convert to Base 36
Syntax - IsBlank function to detect Empty or NULL or Zero.