BBC BASIC for Windows
Programming >> BBC BASIC language >> Print using
http://bb4w.conforums.com/index.cgi?board=language&action=display&num=1392263441

Print using
Post by Wendell on Feb 11th, 2014, 11:02am

Does BBC BASIC SUPPORT "PRINT USING" If not what shoud i use in it place.
Re: Print using
Post by admin on Feb 11th, 2014, 2:15pm

on Feb 11th, 2014, 11:02am, Wendell wrote:
Does BBC BASIC SUPPORT "PRINT USING" If not what shoud i use in it place.

It supports it via the supplied FNUSING library:

Code:
      INSTALL @lib$+"FNUSING"
      .....
      PRINT FNusing("#.####", PI) 

This is somewhat more flexible than the traditional PRINT USING, since you can use it other than in the context of printing:

Code:
      num$ = FNusing("#.####", PI) 

Richard.


Re: Print using
Post by Wendell on Feb 11th, 2014, 2:20pm

thank you very much. learning a lot as i progress