I made this google script:
function quadrato(input) {
return POW(input,2);
}
I entered a call to my "quadrato" function in a sheet, but the sheet gave me this error:
ReferenceError: "POW" non definito. (riga 2).
sheet calling my script function "quadrato"
Instead "POW" is a referenceable function from sheets, as you can see in this iimage:
Actually, you just need to declare your custom function :
Add /**... */ statement in front of the function(){}
/**
* Your description about this function.
* @customfunction
* @param {input} the description about this papameter
*/
function quadrato(input) {
return Math.pow(input,2);
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.