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 | BIN

Edit History

BIN

s = BIN (x)

Home > Reference > String

Returns the binary value of x as string.

Example

print hex(255)      ' output: FF
print bin(8)        ' output: 1000
print oct(16)       ' output: 20
Code samples using BIN
3d block lettes.bas   anomail.bas   Ball.bas   base64.bas   bezier_pen.bas   biorythms.bas   cgi_counter.bas   Charmap.bas   Charts.bas   Colors.bas   counter.bas   Euro_calculator.bas   fibanacci3.bas   fizzle.bas   Fractal_Tree.bas   hex.bas   Hexagon.bas   loadsavebmp.bas   loadsavebmp_fltk.bas   memoryTest.bas   memorytest.bas   pdocview.bas   shooter.bas   Simple_3D.bas   Sketch.bas   Sound.bas   space shooter.bas   sudoku-solver.bas   temperature.bas  
String
ASC   BCS   BIN   CBS   CHOP   CHR   DISCLOSE   ENCLOSE   FORMAT   HEX   INSTR   JOIN   LCASE   LEFT   LEFTOF   LEFTOFLAST   LOWER   LTRIM   MID   OCT   REPLACE   RIGHT   RIGHTOF   RIGHTOFLAST   RINSTR   RTRIM   SINPUT   SPACE   SPC   SPLIT   SPRINT   SQUEEZE   STR   STRING   TRANSLATE   TRIM   UCASE   UPPER   VAL  
This page was last edited on Tue, 19 Sep 2023 14:40:34 +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.