CULng Function In VB.NET
How to use CULng Function?
Explanation
CULng Function
CULng Function in Visual Basic.net 2008 is used to hold unsigned 64-bit integers ranging in value from 0 to 18,446,744,073,709,551,615.
Syntax:
CULng(expression)
Example:
Module Module1
Sub Main()
Dim res As Double = 16241.87
Console.WriteLine("64 bit Unsigned Long Value is
::" & CULng(res))
Console.ReadLine()
End Sub
End Module
Result:
64 bit Unsigned Long Value is:: 16242
In the above CULng Function example, an expression of type Double is converted to an 64-bit unsigned Long
value using the CULng().