How to convert a number to hexadecimal with leading zeros in VB.NET

1 Answer

0 votes
Imports System

Public Class Program
	Public Shared Sub Main()
        Dim num As Integer = 14
		
        Console.Write(num.ToString("X4"))
    End Sub
End Class




' run:
'
' 000E
'

 



answered Jul 2, 2023 by avibootz

Related questions

...