In short, it is a bug in the design of this method.
We are using v3sp3, so I'm seeing the same thing.
The result you are getting back is the upper bound of the int type
(2^31-1).
If you look at the code in the numeralsToTxt global method, it uses
int type primitives to split up and process the real number.
If the real number is bigger than 2^31-1, (2.147 billion you will get
the upper boundary as your result.
Best regards,
jms
--- In development-axapta@yahoogroups.com, "J" <[EMAIL PROTECTED]> wrote:
>
> It is a known bug in V3. Partnersource has a hotfix:
> https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;en-
> us;901373
>
>
>
> --- In development-axapta@yahoogroups.com, Tony Zeigler
> wrote:
> >
> > Hrm, SP4 isn't the most current, but not sure if the issue would be
> fixed by getting current. That would be my first attempt tho -
> because I definately got a different result than you did.
> >
> >
> > --- On Mon, 6/30/08, Wahyudin Zakie wrote:
> >
> > From: Wahyudin Zakie
> > Subject: Re: [development-axapta] help with Invalid NumeralsToTxt
> Result
> > To: development-axapta@yahoogroups.com
> > Date: Monday, June 30, 2008, 3:05 AM
> >
> >
> >
> >
> >
> >
> > I'm using axapta 3.0 SP4.
> >
> > --- On Fri, 6/27/08, Tony Zeigler wrote:
> >
> > From: Tony Zeigler
> > Subject: Re: [development- axapta] help with Invalid NumeralsToTxt
> Result
> > To: development- [EMAIL PROTECTED] ps.com
> > Date: Friday, June 27, 2008, 8:31 AM
> >
> > This seems to give me the correct answer:
> > static void Job1(Args _args)
> > {
> > ;
> > info(numeralsToTxt( 31131178729. 00));
> > }
> >
> > Not sure why yours would be giving a different answer. (I'm using
> 4.0 with current patch)
> >
> > --- On Thu, 6/26/08, Wahyudin Zakie <[EMAIL PROTECTED] com> wrote:
> >
> > From: Wahyudin Zakie <[EMAIL PROTECTED] com>
> > Subject: [development- axapta] help with Invalid NumeralsToTxt
> Result
> > To: development- [EMAIL PROTECTED] ps.com
> > Date: Thursday, June 26, 2008, 8:41 PM
> >
> > hi,
> > I've a problem with NumeralsToTxt function. i have invoice amount =
> IDR 31,131,178,729. i want to convert it to says number, i'm using
> numeralstotxt function but the result is wrong. i try to test this
> code with job like this.
> >
> > info(strfmt( "%1",numeralsToT xt(31131178729. 00)));
> >
> > it says : "Two Billion One Hundred Forty Seven Million Four Hundred
> Eighty Three Thousand Six Hundred Forty Seven and 00/100"
> >
> > is it a bug???
> >
> > Thank's for your reply...
> >
> > Zakie
> >
> > [Non-text portions of this message have been removed]
> >
> > [Non-text portions of this message have been removed]
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>