VB.if sgn(x)

问题描述:

VB.if sgn(x)
Private Sub Command1_Click()
Dim x As Integer,y As Integer
x = -4
If Sgn(x) Then
y = Sgn(x ^ 2)
Else
y = Sgn(x)
End If
End Sub
sgn函数不是为-1,0,或者1吗
if sgn(x)
1个回答 分类:综合 2014-11-23

问题解答:

我来补答
-1, 1 时为 true, 0 时为 false

if sgn(x) then.X不为0时均符合

这啰嗦代码是不是下面这功能
y=sgn(x^2)
 
 
展开全文阅读
剩余:2000