How do I convert Amount/Money type into string. I am trying to convert Invoice.Amount to string.
*This post is locked for comments
Use the num2str function.
static void Job38(Args _args){ Real r; Str myString; ; r = 25.25; myString = num2str(r, 2, 2,1,1); print myString; pause;}
http://msdn.microsoft.com/en-us/library/aa866120.aspx
Hi Guys,
to do this dynamically, here is a solution:
System.Double netDouble;
anytype r1 = 1.125;
str s1;
netDouble = Global::real2double(r1);
s1 = netDouble.ToString();
info(strFmt("%1",s1));
Hi ,
Try 2 below useful link. In the two link, there are a sample function to does this.
dynamicsuser.net/.../how-to-convert-real-numbers-into-text
brotetechnologies.com/.../
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Tocauer 4
Community Member 2
Nayyar Siddiqi 2