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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Convert DotNet double to real

(1) ShareShare
ReportReport
Posted on by 3,542

I am working in Ax2012 and I need to convert a double to a real.

What method can I use?

*This post is locked for comments

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

    HI Peter,

    Doable to real is implicitly marshaled, please refer for details msdn.microsoft.com/.../cc584291.aspx Also please be accurate with tags you are using, 2012 is not a current version.

  • Pete Alberts Profile Picture
    3,542 on at

    Apologies for the wrong tag. I am working on something else today. Will provide details tomorrow.

  • Pete Alberts Profile Picture
    3,542 on at

    Thanks Ievgen. I scanned that microsoft document several times before I posted. Maybe I missed something, not sure.

    Thanks Crispin. The assurance that it should work helped me reach the solution.

    In any case, I found the issue: My method returns an EDT real. If I return the double, I get an error (I wrongly assumed that it would still get marshaled). If I assign the double to a real and then return the real it works fine. (My eyelid encountered a nasty twitch when I realised the issue).

    fine.PNG

    Figure 1: Returning a double creates error

    fine.PNG

    Figure 2: Assignig to EDT Real first runs fine

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans