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

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: EMorrison who wrote (5106)7/2/1998 5:53:00 PM
From: gonzongo  Read Replies (1) of 11149
 
Go to QP2 help files- then scan function dictionary then click on Print/Println- the formatting of decimals is completely documented there.

excerpt from that reference:
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.

g
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext