Hi Wahyu.

I'm using Axapta 3.0 SP 6 and it works fine for that function.

I'm sure that the cause is convert into max integer value.

For example if you declare

    int     i =31131178729;
    ;
    info(strfmt("%1", i));  //--> 2147483647

it will return 2147483647 not 31131178729

perhaps you should try to change the datatype into real

Cheers,

David S






On Tue, Jul 1, 2008 at 6:43 AM, 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 
> [email protected]<development-axapta%40yahoogroups.com>,
> Tony Zeigler
> <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> wrote:
> >
> > From: Wahyudin Zakie <[EMAIL PROTECTED]>
>
> > Subject: Re: [development-axapta] help with Invalid NumeralsToTxt
> Result
> > To: [email protected]<development-axapta%40yahoogroups.com>
> > Date: Monday, June 30, 2008, 3:05 AM
> >
> >
> >
> >
> >
> >
> > I'm using axapta 3.0 SP4.
> >
> > --- On Fri, 6/27/08, Tony Zeigler <tony_zeigler@ yahoo.com> wrote:
> >
> > From: Tony Zeigler <tony_zeigler@ yahoo.com>
> > 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]
> >
>
>  
>


[Non-text portions of this message have been removed]

Reply via email to