How to convert decimal to octal in VB.NET

1 Answer

0 votes
Imports System

Public Class Program
	Public Shared Sub Main()
        Dim _decimal As Integer = 89
		
        Dim oct As String = Convert.ToString(_decimal, 8)
		
        Console.WriteLine(oct)
    End Sub
End Class





' run:
'
' 131
'

 



answered Jul 23, 2022 by avibootz
...