RIAS
asked on
Converting string to currency
Hello,
I am converting a datagridview value to currency
21.10 to 21.1 whereas the requirement is to convert it to 21.10
Any suggestions are welcome.
Cheers
I am converting a datagridview value to currency
If IsDBNull(sender.Rows(intRowIndex).Cells("Deposite").Value) = False Then
str_Dep = CDbl(sender.Rows(intRowIndex).Cells("Deposite").Value)
End If
but,the problem with the above code is that it converts 21.10 to 21.1 whereas the requirement is to convert it to 21.10
Any suggestions are welcome.
Cheers
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i think saige is correct in suggesting the use of N... sorry, of course, i assumed somethingn i shouldn't have.
ASKER
Thanks Saige!!!
doesn't anyone believe in splitting points anymore?
ASKER
p_davis,
Sorry mate but,yours can be an assisted solution .Raising it.
Sorry mate but,yours can be an assisted solution .Raising it.
just appreciate a nod for the effort
ASKER
P_davis,
Was operating the solution from phone.Just accepted the solution in hurry.
Thanks once again.
Was operating the solution from phone.Just accepted the solution in hurry.
Thanks once again.
ASKER
Cheers!
ASKER
Any suggestion ?