|
-
Feb 22nd, 2006, 07:13 PM
#3
Re: Compile Problem.
What type does the expression you are passing to Math.Ceiling return? You can find out by placing a breakpoint on that line and pasting that expression into the Watch window. Presumably it is not returning either a Double or Decimal, so it needs to be converted to one of those types because they are the only types that Math.Ceiling accepts. Computers can't "guess" which way to go. If there are two equally likely possibilites a computer just says "don't know, give up". Basically, you have to tell it whether it is dealing with a Double or a Decimal.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|