HPlogo System Debug Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 8 System Debug Standard Functions

func bin

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Converts a string expression to return a binary value.

Syntax

   bin (strexp)  

Formal Declaration

   bin:any (strexp:str) 

Parameters

strexp

A string expression to be converted from ASCII into binary.

Examples



   %cmdebug > wl bin("1+2")

   %3

The contents of the string "1+2" are evaluated as an expression, and the result (3) is converted into a binary value.

Limitations, Restrictions

If the string parameter strexp contains an expression that, when evaluated, results in a string, the resulting string is returned. It is not converted into a binary value. For example:

   $nmdat > wl bin ('"A"+"B"')

   AB

   $nmdat > wl typeof(bin('"A"+"B"'))

   STR
Feedback to webmaster