Nesting Functions

Chris Sharman Chris.Sharman@ccagroup.co.uk
Fri, 18 Jun 1999 08:54:56 +0100


>I can get it to work if I do it this way:
>
>INFO = "Amount:" + ASCII(X,10)[1:8] + "." + ASCII(X,10)[9:2] 
>
>But then the INFO statement displays:
>
>Amount:00000123.45

info ="Amount:"+formatn(x*0.01,"???????0.??")

Displays "Amount:     123.45", or "Amount:     123   " for 12300.

You can do lots of clever stuff with this function:
left justification, decimal suppression, different formats for +, -, and 0.
The description (in VMS 7.10F new features) runs to 8 sides, and needs careful
reading & extensive playing.

Chris
______________________________________________________________________
Chris Sharman			Chris.Sharman@CCAgroup.co.uk
CCA Stationery Ltd, Eastway, Fulwood, Preston, Lancashire, PR2 9WS.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.