Documentation for /home/davin/idl/socware/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

general/misc/SSW/

bits2.pro


NAME: bits2 PURPOSE: Given a byte or integer, return a vector of 8 or 16 values which are the binary representation of the value. INPUT: invalue - The byte or integer value to check OUTPUT: bitarr - The 8-element array with values set if the bit is set HISTORY: Written 19-dec-1996, RAS after BITS by M.Morrison but correcting negative integer problems and returning 32 byte arrays for longwords regardless of maximum value 17-feb-2001 loop index long. 9-apr-2009, jmm, replaced datatype call with size and case statement hacked from bitplot.pro

Routines

top source BITS2

BITS2, invalue, BITARR, qprint

Parameters

invalue
BITARR
qprint

File attributes

Modification date: Thu Feb 13 16:43:43 2014
Lines: 21