SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quotes Plus -- Ignore unavailable to you. Want to Upgrade?


To: Gary Bollenbach who wrote (9317)4/17/1999 1:21:00 AM
From: Bob Jagow  Read Replies (1) | Respond to of 11149
 
Per Help: Formatting strings and numbers

You can also format individual items in your Print and Println statements, by specifying the length of an items and whether it should be right or left justified. For numerical values, you can specify the number of decimal places to print. See the example below.
Example 4:

Exchange AMEX;

If Close(0) > 50.0 then

Println Symbol: -10, Close(0):8:3, Description:44;

endif;

The first value printed is the symbol of the stock selected. This symbol will be left justified (as signified by the minus sign on the 10) using a minimum of 10 columns.
The next value to be printed is the latest close for the selected stock. This value will be right justified using a minimum of 8 columns. The ":3" signifies the number of digits to the right of the decimal point to print. If the close for a stock is 52.5, the value printed will be " 52.500" .
The last string to be printed is the description of the current selected stock. This value will be right justified using a minimum of 44 columns.

Example Output::
AEK 67.438 SALOMON INC COM ELKS

ATF 82.875 EQUITY INCOME FD UT 1 EXC AT&T
AYN 62.000 LEHMAN BROTHERS HLDGS INC AMGEN YLD
BEM 117.750 BERGSTROM CAPITAL CORP
BHC 96.875 BHC COMMUNICATIONS INC CLl