on Mar 3rd, 2014, 03:16am, Wendell wrote:| one more question is the a way to Right Justify a number in bbc basic ? |
|
So long as you are using a monospaced (fixed pitch) font, such as Courier New or Lucida Console, numbers are right justified by default. Try running this code:
Code: PRINT 1
PRINT 23
PRINT 456
PRINT 7890
The column width is set by the least-significant byte of @% (initially 10).
In a PRINT statement right-justification is switched off by a semicolon (;) and switched on by a comma (,).
You can, of course, also easily achieve right-justification using the FNusing function.
Richard.