Blog author:
Jvprabhusanthi | Posted on: 5/3/2012 | Category:
C# Blogs | Views: 898 | Status:
[Member] |
Points: 75
|
Alert Moderator
Once I tried to compare my string with the a decimal value. I got an error indicating the decimal value cannot be compared.(Convert.ToInt(txt_LowerBound.Text) < 0.001))... Resolved by changing the conversion (Convert.ToDecimal(txt_LowerBound.Text) < 0.001)) Now, I got the next error message. Operator '<' cannot be applied to operands of type decimal' and 'double'
The final change to get this condition work is as below, (Convert.ToDecimal(txt_LowerBound.Text) < 0.001M))
Cheers,Venkatesan Prabu .JHead, KaaShiv InfoTech Cheers,
Venkatesan Prabu .J
Head, KaaShiv InfoTech
http://kaashivinfotech.com/Ebooks.aspx
Found interesting? Add this to: