Re: FastCode RoundToEx
- From: "John Herbster" <herb-sci1_AT_sbcglobal.net>
- Date: Sat, 29 Dec 2007 10:06:27 -0600
"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
.
- Follow-Ups:
- Re: FastCode RoundToEx
- From: Dennis
- Re: FastCode RoundToEx
- References:
- FastCode RoundToEx
- From: Dennis
- Re: FastCode RoundToEx
- From: Dennis
- Re: FastCode RoundToEx
- From: John Herbster
- Re: FastCode RoundToEx
- From: Dennis
- FastCode RoundToEx
- Prev by Date: Re: FastCode Reference Compilers
- Next by Date: Re: What is RoundToEx?
- Previous by thread: Re: FastCode RoundToEx
- Next by thread: Re: FastCode RoundToEx
- Index(es):
Relevant Pages
|