Home > Software engineering >  Vb division problem, please help solve!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Vb division problem, please help solve!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Time:09-23

Why in the VB Text2. Text=0.004/94.868 reach a value of 4.21638487 instead of 0.0042

CodePudding user response:

MsgBox Round (0.004/94.868, 6)

CodePudding user response:

How can is 4.21638487???
You are not show complete!!!! The width of the text box is not enough,
I just looked at, is 4.21638487161108 e-05
This is the representation of "scientific notation",
Equivalent of routine "decimal", said:
0.0000421638487161108

The original poster is 0.0042 for what? By 100 times!
You can use the Format () function, with the "percentage" results:
The Format $(0.004/94.868, "0.0000%") result: 0.0042%

CodePudding user response:

in the mind

CodePudding user response:

Scientific count showed complete after the return, with formatting output function!
  • Related