短暂的上升?

时间:2016-07-29 18:20:21

标签: vb.net

我有一个像这样运行的百分比计算器:

<!-- We depend on the assembly NetSide.sxs --> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="NetSide.sxs" version="1.0.0.0" language="*"/> </dependentAssembly> </dependency> <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <assemblyIdentity type="win32" name="NetSide.sxs" version="1.0.0.0" /> <clrClass clsid="{E6C4A866-F58C-415E-9745-E0E7812B4386}" progid="NetSide.Class1" threadingModel="Both" name="NetSide.Class1"> </clrClass> <file name="NetSide.dll"> </file> </asmv1:assembly>

以下是一个例子:

(Current Progress Integer ÷ Max Progress Integer) x 100结果为(1273 ÷ 1274) x 100,但当我将.ToString作为标签时,它显示为99.9215071,但显然不是。它似乎是Rounding Up,我不想要。

如何解决此问题并将其发布为100

0 个答案:

没有答案