故宫的地图:VB变量类型转换的问题

来源:百度文库 编辑:中科新闻网 时间:2024/07/07 08:55:58
VB变量类型转换的问题:
Private Sub Command8_Click()
Dim jj As Integer
Dim yy As Single

jj = Int(Text7.Text)
yy = Sin(jj)
Print yy
End Sub--------------------我是分隔线--------------------------
假设文本框的值为7,那么输出的结果是0.666
这是为什么?
怎么转换成single型?