AMOSi:Using

From Amiga Coding
Jump to: navigation, search

an example can be found on AMOSPro_Examples:Examples/H-5/Help_52.AMOS


USING is called after a PRINT statement for making subtle changes to the way output is printed from a variable list. Special characters can be used in the format$ string, each one having a different effect.


Print Using format$;variable list.

The format string can contain the following symbols:


  1. print a single digit from your number. Unused digits will be replaced by spaces.


+ adds a + or - sign to the number as appropriate.


- displays a minus sign if the number is negative.


. inserts a decimal point on the number and centres it.


centres the number but doesn`t output a decimal point.


^ prints the number in scientific, or exponential format.