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
OpenForm with where clause not working
ODBC - Insert On A linked Table Failed
Write Data to a Serial Port
calling oracle stored procedues from VC++ using ADO
Forms, tab control and subforms
"blue arrows" display on Outlook folders--ASAP--
hyper v virtual nic on guest machine gets a dhcp assigned ip address
extend Windows Server 2003 group policy to suport Vista / 7
Left justify column data
Rpts-writing/using a log