Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C Sharp only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C Sharp
how to compare two double datatype values in C#
how to compare two double datatype values in C#
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
gayathiri123
New Member
Join Date:
Jun 2015
Posts:
1
#1
how to compare two double datatype values in C#
Jun 23 '15, 11:45 AM
I am not able to compare two double values in c#
Ex:
double x=36.2444
double Y=35.2244
if(X < Y)
Console.writeli ne(the value of X:",X);
computerfox
Contributor
Join Date:
Mar 2010
Posts:
276
#2
Jun 24 '15, 01:27 AM
I believe the x is lowercase. Can you try again and let us know?
Also, when you're printing the content, I believe it should be:
Code:
Console.writeline("The value of X: "+x);
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment