Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Friend Function Uint16ToInteger(ByVal value As UInt16) As Integer
Return Integer.Parse(value.ToString)
End Function
Friend Function Uint32ToLong(ByVal value As UInt32) As Long
Return Long.Parse(value.ToString)
End Function
Friend Function Uint64ToDecimal(ByVal value As UInt64) As Decimal
Return Decimal.Parse(value.ToString)
End Function
Friend Function IntegerToUint16(ByVal value As Integer) As Uint16
If value < 2 ^ 16 Then
Return Uint16.Parse(value.ToString)
Else
Throw New OverflowException(value.ToString & " is too large to convert to a 16-bit unsigned integer! It must be less than " & (2 ^ 16).ToString & "!")
End If
End Function
Friend Function LongToUint32(ByVal value As Long) As UInt32
If value < 2 ^ 32 Then
Return UInt32.Parse(value.ToString)
Else
Throw New OverflowException(value.ToString & " is too large to convert to a 32-bit unsigned integer! It must be less than " & (2 ^ 32).ToString & "!")
End If
End Function
Friend Function DecimalToUint64(ByVal value As Decimal) As UInt64
If value < 2 ^ 64 Then
Return UInt64.Parse(value.ToString)
Else
Throw New OverflowException(value.ToString & " is too large to convert to a 64-bit unsigned integer! It must be less than " & (2 ^ 64).ToString & "!")
End If
End Function