GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Download
  • News
  • Community
  • Resources
  • Language Reference
  • SmallBASIC Manual

This view

  • Original page
  • New address

GeezerVison is showing smallbasic.github.io — SmallBASIC | USING

Edit History

USING

PRINT USING

Home > Reference > Language

PRINT USING uses the FORMAT function to display numbers and strings.

See PRINT for more information. USG and USING are equivalent.

Example

a = 1000
b = 2000
PRINT USING "#,###.##"; a                    
PRINT USING "#,###.## "; a; b                ' <- Format is applied to all variables         
PRINT USING "a = #####.00  b = #####"; a; b  ' <- One formated string with placeholders for two variables

' Output: 1,000.
' Output: 1,000. 2,000.             
' Output: a =  1000.00  b =  2000   
Code samples using USING
002 numeric variables.bas   003 conditional branching.bas   006 arrays+.bas   7gables.bas   agendus.bas   anomail.bas   bairstow.bas   BAS_NOWv2.bas   base64.bas   bb2fork smurf.bas   betrayal: crows ii.bas   checkers.bas   chess.bas   conrec-sb-v01.bas   CSV_Viewer.bas   dataminmax.bas   dmsareaplot.bas   dogstar5.bas   fireworks.bas   gaussj.bas   hangman v2.bas   hangman.bas   image demo.bas   image_demo.bas   lander.bas   leastq.bas   lineareq.bas   lineqn.bas   loancalc.bas  
Language
AND   AS   BAND   BG   BOR   BYREF   CALL   CASE   CATCH   CONST   DECLARE   DEF   DO   ELIF   ELSE   ELSEIF   END   END TRY   ENDIF   EQV   EXIT   FALSE   FI   FOR   FUNC   GOSUB   GOTO   IF   IFF   IMP   IN   LABEL   LET   LIKE   LOCAL   LSHIFT   MDL   MOD   NAND   NEXT   NOR   NOT   ON   OR   REM   REPEAT   RETURN   RSHIFT   SELECT   STEP   STOP   SUB   THEN   THROW   TO   TRUE   TRY   UNTIL   USE   USG   USING   WEND   WHILE   XNOR   XOR  
This page was last edited on Tue, 12 Sep 2023 17:11:22 +0200 | Markdown processed with pandoc 3.1.12.1
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.