通过此加载项,可以轻松设置数据表中显示的数据的可见精度。数据不会以任何方式更改,唯一更改的是可见的精度。例如,如果一列具有精度为9位的数据,则可以使精度为3位,但原始的9位仍然存在。在这种情况下,“精度位数”是指小数点右边的位数。
您实际上不需要外接程序即可执行此操作。可以使用列属性来更改列的格式。使用“标准化属性”可以一次在许多列上完成此操作。该视频显示了如何使用所有三种方法来执行此操作:1)使用加载项,2)设置列属性,和3)使用标准化属性。
考虑到可以使用标准的JMP菜单命令轻松完成此操作,因此关于本帖子的最有用的事情可能是将其视为JMP脚本以及如何编写列对话框(选择特定的列来进行操作)的示例。考虑到这一点,我在本文中包含了JSL代码。
如果要加载外接程序,只需将外接程序文件下载到计算机上,然后使用JMP打开该文件。然后,JMP将询问您是否要安装外接程序。
用户界面如下所示:

这是上述三种方法的简短演示视频:
这是该加载项使用的JSL代码:
/*
Routine to set column precision on columns selected by a column dialog box.
Hyde Miller
JMP Systems Engineer
10/28/20
*/
Names Default to Here( 1 );
disclaimer = Expr(
New Window( "License Agreement",
Modal,
Outline Box( "License Agreement for Corrective Code or Additional Functionality",
H List Box(
Spacer Box( Size( 50, 50 ) ),
V Scroll Box(
Size( 500 ),
Flexible( 1 ),
Text Box(
"SAS INSTITUTE INC. IS PROVIDING YOU WITH THE COMPUTER SOFTWARE CODE INCLUDED WITH THIS AGREEMENT (\!"CODE\!") ON AN \!"AS IS\!" BASIS, AND AUTHORIZES YOU TO USE THE CODE SUBJECT TO THE TERMS HEREOF. BY USING THE CODE, YOU AGREE TO THESE TERMS. YOUR USE OF THE CODE IS AT YOUR OWN RISK. SAS INSTITUTE INC. MAKES NO REPRESENTATION OR WARRANTY, EXPRESS OR IMPLIED,
INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT AND TITLE, WITH RESPECT TO THE CODE.
The Code is intended to be used solely as part of a product (\!"Software\!") you currently have licensed from SAS or one of its subsidiaries or authorized agents (\!"SAS\!"). The Code is designed to either correct an error in the Software or to add functionality to the Software, but has not necessarily been tested. Accordingly, SAS makes no representation or warranty that the Code will operate error-free. SAS is under no obligation to maintain
or support the Code.
Neither SAS nor its licensors shall be liable to you or any third party for any general, special, direct, indirect, consequential, incidental or other damages whatsoever arising out of or related to your use or inability to use the Code, even if SAS has been advised of the possibility of such damages. Except as otherwise provided above, the Code is governed by the same agreement that governs the Software. If you do not have an existing agreement with SAS governing the Software, you may not use the Code. (SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. Other brand and product names are registered trademarks or trademarks of their respective companies.)
",
<<SET wrap=""></SET>