Author Topic: char pattern problem with convertion  (Read 1866 times)

0 Members and 1 Guest are viewing this topic.

Frankolinox

  • Guest
char pattern problem with convertion
« on: August 23, 2014, 09:38:31 AM »
lalala :)
« Last Edit: October 01, 2014, 08:34:31 AM by Frankolinox »

Charles Pegge

  • Guest
Re: char pattern problem with convertion
« Reply #1 on: August 23, 2014, 10:23:56 AM »
Hi Frank,

you can use the char construct directly:

try this:

s=chr (65,66,67,68,69,70) &
  chr (97,98,99,100,101,102)
print s


JRS

  • Guest
Re: char pattern problem with convertion
« Reply #2 on: August 23, 2014, 10:31:49 AM »
I'm curious Charles. Does O2 support 0X22 or other numeric base numbering inline with standard (base 10) numbers? (Like SB)

Charles Pegge

  • Guest
Re: char pattern problem with convertion
« Reply #3 on: August 23, 2014, 10:49:07 AM »
Hi John,

O2 currently supports the following binary,octal & hexadecimal formats:


print 0b100 '4
print 0o100 '64
print 0h100 '256
print 0x100 '256

print &b100 '4
print &o100 '64
print &h100 '256

print 100o  '64
print 100h  '256
« Last Edit: August 23, 2014, 10:58:02 AM by Charles Pegge »