On Tue, 26 Aug 2008 15:58:44 +0200, Frans Bouma <[EMAIL PROTECTED]> wrote:
Hello,
We've talked about all this before I seem to remember, this entity
framework stuff is more what I'm after, though I'm slightly confused by
some of it.
>> I've been doing this for about 3 hours, so I may have the w
Inline ->
> >> I've been doing this for about 3 hours, so I may have the wrong end of
> the
> >> stick.
> >>
> >> While doing the "hello world" type walkthrough I've come across
> >>
> >> ObjectQuery departmentQuery =
> >> schoolContext.Department.Include("Course")
Eddie,
The issue must be that the Double value is not
137.89
but something like
137.886
which you multiply by 100 to get
13788.6
and cast to uint (which truncates), leaving
13788
I would suggest using
uint nIntAmount = (uint)Math.Round(objMyObject.Amount * 100,
MidpointRounding.Aw
Since there seems to be no clear solution so far, I've gone back to the
beginning. I suggest you get more information by writing some code to
display your numbers to higher precision. My expectation is that the
137.89 is actually 137.88 (probably more nine's). So your code below
converts this t