Microsoft
Software
Hardware
Network
Question : Operator '>' can not be applied to operands of type double or decimal
I'm a bit baffled why I can not do this:
double speed = 100.0;
if ( speed < 200.0)
{
// do something
}
what gives?
newbieweb
Answer : Operator '>' can not be applied to operands of type double or decimal
well, same play
1: 2: 3: 4: 5: 6:
decimal speed = 100.0; decimal check_value = 200.0; if (speed < check_value) { }
Open in New Window
Select All
Random Solutions
user.identity is not recognized in master page
Looping through a combo box or a list
Remote Desktop - security over public Internet
Foxpro 2.6a for Windows under XP Virtual Machine
NetBIOS name resolution failing
Page Breaks in Group Section not working when inside a subreport.
Colors in Excel are randomly changing
DTS on SQL2008
Windows Script Control component
How to Right Justify DataGridView Column