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
Delete duplicate records
Excel vba: post 24 based on prev EE post - Excel Color Palette - Scheme/Index revisited - for Sean and WarCrimes
Windows/Microsoft Updates all fail for new install of Win XP Pro
sql updating a table
FileSystemWatcher VB.Net How to check if File is opened by application
Can't Connect Remotely to SQL Server 2008
Capturing Machine Address in VB.NET
Dialog box for making the user select the printer
Do...Loop alternative
Remove toolkit infection where browser is hijcked to r9237242.cn