I am creating a form that uses a lot of real numbers as parameters and coefficients. While C-EMR appears to represent the numbers accurately internally, I have not been able to figure out a way to get a Data Display to show the numbers with more than 2 decimal places.
As an example, if the Data Display set the value of the document variable DOCUMENT.PARAMETER is set to the value of "e" to 6 decimal places, they are all displayed in an edit field. However, the Data Display rounds the value off to 2 decimal places.
Does anyone know how to get the Data Display to show all 6 digits to the right of the decimal point. I cannot use the edit field for this purpose because I don't want the user to be able to change the values.
You could make the edit field "disabled", so it will display its value but cannot be edited. In the Edit Field, go to the Advanced tab, in the Enable/Disable Expression box, check [X] Use enable expression. Then put FALSE in box below.
- Beverly
Great suggestion! Thanks. Do you know whether there is a general way of controlling the number of significant figures in a data display? Aside from the data mask which only has general categories (e.g. integer, real) I couldn't find any way to control this.
There is the MEL function TRUNCATE( value, point ) where point is the number of spaces after the decimal point after truncating. I do not know if truncate rounds or not.
There is also the MEL function ROUND( value, point ) which does round, example ROUND( 75.75 ) becomes 76. ROUND ( 75.77, 1) should become 75.8, I think.
Beverly