Hi,
I am using JMP version 16.
I am transferring data from a CrossTab table. I have asked it to round to 3 decimals. It then saves the data into a string, which will be used to print the results into a table. See code below.
// Get data from CrossTab table
crossTab = reportFitmod[Outline Box( "LSMeans Differences Student's t" )][CrosstabBox( 1 )] << get as matrix;
meandiff = Round( crossTab[1, 2] , 3 );
lowerCL = Round( crossTab[3, 2] , 3 );
upperCL = Round( crossTab[4, 2] , 3 );
// Create the Difference in mean and CL string
Insert Into( dif, Char( meandiff ) || " [" || Char( lowerCL ) || " ; " || Char( upperCL ) || "]" );
I have two questions about the reporting:
1. Why does it report e.g., 0.019 as 0.02 instead of 0.020 when it is specified to report 3 decimals?
2. This used to work, but now it does not - it takes the value 0.0015 and rounds it to 0.001 instead of 0.002. Do you know why it does this and how to fix it? I want it to keep the normal rounding rules (4 or less rounds down and 5 or higher rounds up).
Best regards,
Julie