数学运算 [英] mathematical operation

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

问题描述

如何执行数学运算是否可以在asp中使用vbscript我想计算所得税从表中获得收入并显示他的所得税必须支付。

how can perform mathematical operation is it possible in asp with vbscript i want to calculate income tax get income from table and display his income tax have to pay .

推荐答案




请参考此链接
Vb脚本函数用于使用Vb脚本进行数学计算。

Hi,

Please refer this link
Vb script Functions for doing the mathematical calculations using Vb script.


如何执行数学运算是否可能在asp与vbscript我想计算所得税从表中获得收入并显示他的所得税必须支付。
how can perform mathematical operation is it possible in asp with vbscript i want to calculate income tax get income from table and display his income tax have to pay .


嗨我正在使用此代码添加和打印薪水但是错误是类型不匹配可以做这种类型的操作,如果不是任何关于添加的想法使用vscript,asp,mul,div中的divisinal oparation
hi i am using this code for addition and print dudction from salary but error is type mismatch can do this type of operation if not than any idea about add ,sub ,mul,divisinal oparation in asp with vscript
展开 | 选择 | Wrap | 行号





由于以下原因之一,您收到类型不匹配错误:


1)您尝试添加的2个变量数据类型错误。转到并检查您为其分配的数据类型。即它们应该是数字数据类型。


2)在添加之前没有进行类型转换。

例如这样写,

Cint(R(" proj_pf"))+ Cint(R(" proj_vpf"))执行转换为apprpriate数据类型

Hi,

You are getting Type Mismatch error for one of these reasons :

1) 2 variables you are trying to add are of wrong data type. Go and check what datatypes you have assigned to them. i.e. They should be of numeric data type.

2) Typecasting is not done before doing addition.
e.g Write it this way,
Cint(R("proj_pf")) + Cint(R("proj_vpf")) to do the casting to the apprpriate data type


嗨我正在使用此代码添加和打印薪水但是错误是类型不匹配可以做这种类型的操作,如果不是任何关于添加,sub,mul,divisinal oparation in asp with vscript
hi i am using this code for addition and print dudction from salary but error is type mismatch can do this type of operation if not than any idea about add ,sub ,mul,divisinal oparation in asp with vscript
展开 | 选择 | Wrap | 行号


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

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