This error should be a simple one but I cant seem to make it work. The problem lies in the fact that this very same code works earlier in the program. I don\'s see any reaso
.8m instead of .8
You didn't say which line it was, but I'm betting on these two:
z = (x*y)*(.8 * 1.732050808m);
And:
z = (1000 * x)/(y * 1.732050808m)* .8;
Note that your .8 does not have the 'm' qualifier. Every other place I see you did supply that.
In this line here:
z = (xy)(.8 * 1.732050808m);
you specify .8 as a literal, but without the 'm' suffix, the literal specifies a double.
z = (xy)(.8m * 1.732050808m);
will fix it.