vb.net中科学计算器中的数学函数 [英] mathematic function in scientific calculator in vb.net

查看:139
本文介绍了vb.net中科学计算器中的数学函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hai,我想知道在vb.net中操作Sin,Tan,Cos,Log,m +,mr和mc的代码是什么.此功能将添加到我的项目科学计算器中.目前,我正在创建科学计算器项目.这是我的项目,希望可以为您提供参考.

私人Sub btnsum_Click(ByVal发送者为System.Object,ByVal e为System.EventArgs)处理btnsum.Click
昏暗结果为整数
total2 = Val(answer.Text)
选择案例[操作员]
案例"+"
结果= total1 + total2
answer.Text =结果
案例-"
结果=总数1-总数2
answer.Text =结果
案例"/"
结果=总1/总2
answer.Text =结果
案例"*"
结果= total1 * total2
answer.Text =结果
结束选择
answer.Text =结果
结束Sub

hai, i want to know what is code for operation Sin, Tan , Cos , Log, m+, mr and mc in vb.net. This function will added into my project scientific calculator.Currently i am create scientific calculator project. Here is my project which i hope as your reference.

Private Sub btnsum_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsum.Click
Dim result As Integer
total2 = Val(answer.Text)
Select Case [Operator]
Case "+"
result = total1 + total2
answer.Text = result
Case "-"
result = total1 - total2
answer.Text = result
Case "/"
result = total1 / total2
answer.Text = result
Case "*"
result = total1 * total2
answer.Text = result
End Select
answer.Text = result
End Sub

推荐答案

.Net数学类 [^ ]


这篇关于vb.net中科学计算器中的数学函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆