Re: FastCode RoundToEx




"Dennis" <marianndkc@xxxxxxxxxxxxxxx> wrote
There is a bug in RoundTo_JFH which confused me.
Now it makes more sense to me.

LFactor := IntPower(10, NbrDecFractDigits); ///<----------- LFactor
:= IntPower(10, -NbrDecFractDigits);
Result := Round(aValue*LFactor)/LFactor;

Dennis,

Sorry for that confusion and the time it took you to find it. That change was deliberate. I like parameters with easy to interpret meanings. I should have pointed out the change.

Regards, JohnH
.



Relevant Pages

  • Re: Display Windows Address Book in Last Name Order
    ... I think the confusion here is that Dennis is using and asking ... Although he said "the WinXP Pro Address ... >>>>composing and email message in the firstname,lastname order ...
    (microsoft.public.windowsxp.general)
  • Re: sum of products
    ... Forgive me for introducing both deliberate and accidental ... confusion here, in one short phrase! ... true" by mistake), i.e. the two sides are sometimes equal, ... annoying feature of mathematical vocabulary, ...
    (sci.math)
  • Re: Latest ID card poll in Daily Mail
    ... His deliberate attempt to confuse ID cards with mainstream security ... was deliberate confusion on his part. ... He was deliberately confusing the issue to make ID cards look like a good ... You've got no evidence for this assertion. ...
    (uk.politics.misc)
  • Re: Latest ID card poll in Daily Mail
    ... His deliberate attempt to confuse ID cards with mainstream security ... and I fail to see any evidence that there ... was deliberate confusion on his part. ... He was deliberately confusing the issue to make ID cards look like a good ...
    (uk.politics.misc)
  • Re: BDS 2006
    ... Dennis -- ... It appears that there is some confusion in QC about what that ... particular search reveals. ... David Dean appears to be working on getting ...
    (borland.public.delphi.non-technical)