cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Theresa
Level IV

how to change one column to percentage format

Like change the weight column to persentage:

 

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

 

how to covert the "weight" column as  "95/100*100"=95%. 95% as the final result?

 

                        height  weight

KATIE small F    59    95
LOUISE small F 61 123

 

 

1 REPLY 1
txnelson
Super User

Re: how to change one column to percentage format

names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
for each row(
     :weight = :weight / 100;
);
dt:weight << format("Percent",7,2);

Percent format uses 1 as 100%, and any decimal value less than 1 as the percent of 1.  Therefore .59 will be displayed as 59%

 

Jim

Recommended Articles