PGAGetIntegerFromBinary(3)

NAME
PGAGetIntegerFromBinary - interpets a binary string as encoding an integer value and returns the integer value it represents.

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

SYNOPSIS
#include "pgapack.h"
int  PGAGetIntegerFromBinary(ctx, p, pop, start, end)
PGAContext *ctx
int p
int pop
int start
int end

LOCATION
binary.c

EXAMPLE
Example:
If the integer j is represented using the 20 bits in bit positions
10--29 in string p in population PGA_NEWPOP use
int j;
:
j = PGAGetIntegerFromBinary(ctx,p,PGA_NEWPOP,10,29);
to retrieve the value of j