Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

RE: Convert string to real value with specific number of decimal digits

$
0
0

I try to do test before writing the required code to handle the scenario I have

The is the code

real RealValue=99.3421111111;

       str strValue= num2str

       (

       RealValue,

       -1, // Minimum number of characters to output into the string.

       6, // Required number of digits to the right of the decimal.

       DecimalSeparator::Dot,    // 1

       ThousandSeparator::None  // 2

       );

       real yy=str2num_RU(strValue);

       info(strValue);        

       info(strfmt("%1",yy));

       info(strfmt("%1",RealValue));


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>