通過此加載項,可以輕鬆設置數據表中顯示的數據的可見精度。數據不會以任何方式更改,唯一更改的是可見的精度。例如,如果一列具有精度為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>