Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel vba在乘以1或2时乘以2位小数,但不>;3._Excel_Vba - Fatal编程技术网

Excel vba在乘以1或2时乘以2位小数,但不>;3.

Excel vba在乘以1或2时乘以2位小数,但不>;3.,excel,vba,Excel,Vba,我不知道这里发生了什么,我不得不把vba分开来理解它 the value of textbox8 is 0.832676943005964 commandbutton4 multiplies textbox7 * textbox8 when textbox7 = .15 the answer is 0.124901541450895 which is correct when textbox7 = .1 the answer is 8.32676943005964E-02 which is

我不知道这里发生了什么,我不得不把vba分开来理解它

the value of textbox8 is 0.832676943005964
commandbutton4 multiplies textbox7 * textbox8



when textbox7 = .15 the answer is 0.124901541450895 which is correct
when textbox7 = .1 the answer is 8.32676943005964E-02 which is wrong
when textbox7 = .05 the answer is 4.16338471502982E-02 which is wrong
这是怎么回事


提前谢谢

这是正确的,它只是在科学记数法中
8.32676943005964*0.1
将产生0.083267643005964,然后就是
E-2
。。。这些答案怎么会错呢?你到底在期待什么?简单的哇。谢谢