C# returns back a 0 to a double when dividing two integer values. Therefore, we have to cast as follows:
double dblResult = (double)(intValue1) / (double)(intValue2));
Subscribe to:
Post Comments (Atom)
Mark Stein's blog chronicling daily things in his life including Crockett (his beagle/basset hound dog), social happenings, home remodeling projects, photography, outdoor adventures, concert reviews, guitar playing and oh... work
No comments:
Post a Comment