tonetbinary()

Scalar. Converts an integer in host byte order to a 4 byte binary in network byte order.

Syntax

tonetbinary ( integer )

Parameters

integer

An integer in host byte order.

Usage

Takes an integer in host byte order and converts it to a 4 byte binary in network byte order. Works for positive and negative values.

Example

tonetbinary (1224164) returns 0012ADE4.

tonetbinary (-1224164) returns FFED521C.