Example: Switch to DEC base, display #100 in all bases, and check that BDISP restored the base to DEC. Clear the stack and select the MTH BASE menu. Make sure the current base is DEC and enter #100.

‚·

‚Ã%DEC%

100 `

Execute BDISP.

J%BDISP%

Return to the normal stack display and check the current base.

‚Ã

Although the main nested program left the calculator in BIN base, PRESERVE restored DEC base. To check that BDISP also works for real numbers, try 144.

J

144%BDISP%

Press to return to the stack display.

Median of Statistics Data

This section contains two programs:

%TILE returns the value of a specified percentile of a list.

MEDIAN uses %TILE to calculate the median of the current statistics data.

%TILE (Percentile of a list)

%TILE sorts a list, then returns the value of a specified percentile of the list. For example, typing {list} 50 and pressing %©TILE% returns the median (50th percentile) of the list.

Level 2

Level 1

Level 1

 

 

 

 

{ list }

n

nth percentile of sorted list

 

 

 

 

2-10 RPL Programming Examples