PGAGetIntegerFromBinary(3)

PGAGetIntegerFromBinary3

Interpets a binary string as encoding an integer value and returns the integer value it represents.

Part of PGAGetIntegerFromBinary(1).

Usage

PGAContext *ctx

int p

int pop

int start

int end

Input parameters

ctx

- context variable

p

- string index

pop

- symbolic constant of the population the string is in

start

- starting bit position in the binary representation

end

- ending bit position in the binary representation

Output parameters

none

Location

evaluate.c

Examples

Example:
Get an integer j from bits 10--29 of string p in population PGA_NEWPOP.
PGAContext *ctx;
int j, p;
:
j = PGAGetIntegerFromBinary(ctx, p, PGA_NEWPOP, 10, 29);

Releases

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.