搜索文档
extract the sign of the parameter
genType sign(genType x)
x
sign returns -1.0 if 𝑥<0.0, 0.0 if 𝑥=0.0 and 1.0 if 𝑥>0.0.
sign