fromnetbinary()

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

Syntax

fromnetbinary ( binary )

Parameters

binary

A binary in network byte order.

Usage

Takes a binary in network byte order and converts it to an integer in host byte order. Works for positive and negative values. The function takes a binary value as its argument and the function returns an integer. The function returns an error if the binary value is more than 4 bytes long.

Example

fromnetbinary (FFFFFFF6) returns -10.

fromnetbinary (0012ADE4) returns 1224164.