Number to Binary String

Description

This object is being used to convert a number into a binary string.


App Builder Object


Source Code

 

function execute() { switch (trigger) { case 0: return [(inPorts[1].value >>> 0).toString(2)]; default: break; } return []; }

Examples

Example

Initialize

Number

Binary String

Example

Initialize

Number

Binary String

1

Trigger

7

111

2

Trigger

51

110011

3

Trigger

77

1001101


In Ports

Position

Name

Message Type

Description

Position

Name

Message Type

Description

1

Trigger

Trigger

This port is being used to trigger the 'Number to Binary String' object.

2

Number

Number

This port is being used to receive the number for the ‘Number to Binary String’.


Out Ports

Position

Name

Message Type

Description

Position

Name

Message Type

Description

1

Binary

String

This port is being used to send out the binary string from the 'Number to Binary String'.


Properties

Name

Description

Name

Description

Object Name

The name of the object on the canvas.

Show Code View

The switch to turn on code view for the Code Object.

Duplicate code into custom Code Object