在代码中定义数学逻辑 [英] Define the mathematic logic in code

查看:90
本文介绍了在代码中定义数学逻辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在这里有一个问题,我需要定义一些数学运算,但我不知道程序员为我这个叫做什么搜索......还有我的代码



Hi all,

I have a problem here where i need to define some mathematical operation but I don''t know what the programmer call this for me to search..here are my code

Dim dblUnderPaid as Double=0.0
Dim intCnt as Integer=0

dblUnderPaid=25

intCnt=dblUnderPaid / 10 ' This is where I want to count how many ticket will be print out as for the dblUnderPaid is $25 so the intCntwill be 2.5 and it will print the ticket for 2 and should return $5 to the customer..





但我不知道获得5美元的数学运算,程序员称之为数学运算?请帮我这个



But I don''t know the math operation to get the $5, what programmer call this math operation? Please help me with this

推荐答案

25所以intCnt将是2.5并且它将打印2的票证并且应该返回
25 so the intCntwill be 2.5 and it will print the ticket for 2 and should return


5给客户..
5 to the customer..





但是我不知道得到



But I don''t know the math operation to get the

的数学运算


5,程序员调用这个数学运算?请帮我解决这个问题
5, what programmer call this math operation? Please help me with this


这篇关于在代码中定义数学逻辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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