Ho do I call a static function?

It’s very basic, but I can’t figure it out myself.

I have created a static function:

static function modulo (dividend: float, divisor: float) {
if (divisor == 0) {
Debug.Log(“divisor = 0”);
return 0;
}
return dividend - divisor*Mathf.Floor(dividend/divisor);
}

Now, how do I call it?

You should use the class name - which is the name of the script without quotes or extension. If the script where the function “modulo” is defined is called Functions.js, for instance, you can call modulo as Functions.modulo(…) in other scripts.