CNumToBin

<< Click to Display Table of Contents >>

Manual > Control Reference > Route > Route Methods >

CNumToBin


 

Converts a value to a binary string.

 


syntax

CNumToBin(

         val

         [,width = 0]

         [,zerosuppress = FALSE]

         )

 


Parameters

 

val

 

Type:

Number

 

The value to convert.

 

width

 

Type:

Number

 

Total number of characters. If the number of characters is insufficient, zeros or spaces will be added to the beginning according to zerosuppress. If width is 0, nothing will be added.

 

zerosuppress

 

Type:

Boolean

 

TRUE - If the number of digits is not equal to width, the leading part will be padded with spaces.

FALSE - If the number of digits is not enough to fit width, the leading zeros will be inserted.

When width is 0, nothing is added.

 

Return Value

 

 

Type:

character

 

The converted value.

 


hmtoggle_plus1Explanation

 


Supported


Script Action

Browser script

Calculation Expression Syntax

 

 


reference