Writing a function reference

Report a typo

Here is a class Math:

class Math {
    
    /**
     * Converts an angle measured in degrees to an approximately
     * equivalent angle measured in radians.  The conversion from
     * degrees to radians is generally inexact.
     */
   fun toRadians(angdeg: Double): Double {
        return angdeg / 180.0 * PI
    }
    
    // other functions
}

How can you write a function reference to the function toRadians?

Enter the correct answer without spaces.

Enter a short text
___

Create a free account to access the full topic