web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Str2Int doesn't return right value

(0) ShareShare
ReportReport
Posted on by 2

I trying the follow job and found limitation with the str2int function. When the value is too large (2200000001.00), the system automatically return 2147483647.

Any solution to solve this?

static void Job1(Args _args)

{

int i;
;
i = str2int("2200000001.00");
print i;
pause;


}

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    Hi Chee Meng Chan,

    If a sting contains value greater than int use str2int64() instead. However, variable should be int64 type as well, like

    static void Job1(Args _args)
    {
        int64 i;
        ;
        i = str2int64("2200000001.00");
    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans