vb6.0 datagrid显示小数点问题
在控件datagrid中,某一列的值是0.5,现在显示成.05,请问怎样用语句让其显示成0.5啊?
Value="05"
Result = Lrft(Value,1) & "." & Right(Value,1) => 0.5
or ~
Value="05"
Result = Format((CDbl(Cint(Value)/10)),"0.0") => 0.5
or ~
Value="05" : StrLen=Len(Value)
Result = Mid(Value,1,1) & "." & Mid(Value,StrLen,1) => 0.5
Maybe ~
Value="05":StrLen=Len(Value)
ReDim Temp(StrLen-2)
For i=2 to StrLen
Temp(i-2)=Mid(Value,i,1)
Next i
Result = Mid(Value,1,1) & "." & Join(Temp()) => 0.5
But......???