How to convert radians to degrees in VB.NET

1 Answer

0 votes
Imports System

Public Class Program
    Public Shared Function RadiansToDegree(ByVal radians As Double) As Double
        Return (180 / Math.PI) * radians
    End Function

    Public Shared Sub Main()
        Console.WriteLine(RadiansToDegree(1))
        Console.WriteLine(RadiansToDegree(2))
    End Sub
End Class




' run:
'
' 57.2957795130823
' 114.591559026165
'

 



answered Aug 10, 2023 by avibootz

Related questions

1 answer 103 views
103 views asked Aug 11, 2024 by avibootz
1 answer 118 views
118 views asked Aug 11, 2024 by avibootz
1 answer 119 views
1 answer 123 views
1 answer 126 views
126 views asked Aug 10, 2024 by avibootz
1 answer 110 views
110 views asked Aug 10, 2023 by avibootz
1 answer 132 views
...