Gamalto

Fork me on GitHub

Namespace Convert Overview

Gamalto. Convert

Helper object to convert numbers.

Extends

Methods

toInt8(value) number

static

Converts a number to an equivalent 8-bit signed integer.

Parameters
Name Type Description
value number

Number to be converted.

Returns
  • Signed integer.

toInt16(value) number

static

Converts a number to an equivalent 16-bit signed integer.

Parameters
Name Type Description
value number

Number to be converted.

Returns
  • Signed integer.

toInt32(value) number

static

Converts a number to an equivalent 32-bit signed integer.

Parameters
Name Type Description
value number

Number to be converted.

Returns
  • Signed integer.

toUint8(value) number

static

Converts a number to an equivalent 8-bit unsigned integer.

Parameters
Name Type Description
value number

Number to be converted.

Returns
  • Unsgined integer.

toUint16(value) number

static

Converts a number to an equivalent 16-bit unsigned integer.

Parameters
Name Type Description
value number

Number to be converted.

Returns
  • Unsgined integer.

toUint32(value) number

static

Converts a number to an equivalent 32-bit unsigned integer.

Parameters
Name Type Description
value number

Number to be converted.

Returns
  • Unsgined integer.

Documentation generated by JSDoc 3.3.2 on Sun Sep 13 2015 20:13:31 GMT+0200 (CEST)