我要用一个if语句像下面:
If 0.56 < rg < 0.6 Then<?xml:namespace prefix="o" ns="urn:schemas-microsoft-com:office:office"></?xml:namespace>
B = (rg * (-6.58) + 4.6548) / 0.04
B1 = (rg * (-13.2) + 10.488) / 0.04
End If
If 0.6 < rg < 0.64 Then
B = (rg * (-2.2) + 2.0268) / 0.04
B1 = (rg * (-15.6) + 11.928) / 0.04
End If
但是我执行的时候rg=0.59为什么一直是用最后的那个公式算呢?
If 0.56 < rg < 0.6 Then<?xml:namespace prefix="o" ns="urn:schemas-microsoft-com:office:office"></?xml:namespace>
B = (rg * (-6.58) + 4.6548) / 0.04
B1 = (rg * (-13.2) + 10.488) / 0.04
End If
If 0.6 < rg < 0.64 Then
B = (rg * (-2.2) + 2.0268) / 0.04
B1 = (rg * (-15.6) + 11.928) / 0.04
End If
但是我执行的时候rg=0.59为什么一直是用最后的那个公式算呢?