Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
double (float) type variable
#1
Code:
Copy      Help
double d=9/2
if d>4.4
    out "yes"
else
    out "no"
the output is "no". Can someone explain that - d should be 4.5 and if should return "yes"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)