grad to rad formula code example Example: degrees to radians double radians = Math.toRadians(degrees);