Changeset 142 for trunk/SRC/ToBeReviewed/LECTURE/binary.pro
- Timestamp:
- 07/21/06 14:47:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/LECTURE/binary.pro
r134 r142 1 1 ;+ 2 ; Name: 3 ; binary 4 ; Purpose: 5 ; Returns the binary representation of a number of any numerical type. 6 ; Argument: 7 ; number scalar or array of numbers (any numerical type) 8 ; Returns: 9 ; Byte array with binary representation of numbers. 10 ; Examples: 2 ; @file_comments 3 ; Returns the binary representation of a number of any numerical type. 4 ; 5 ; @param NUMBER {in}{required} 6 ; scalar or array of numbers (any numerical type) 7 ; 8 ; @Returns 9 ; Byte array with binary representation of numbers. 10 ; 11 ; @Examples 11 12 ; Binary representation of 11b: 12 13 ; IDL> print, binary(11b) … … 25 26 ; alpha vms 0fda4149 68c0a221 49 41 da 0f 21 a2 c0 68 26 27 ; (Beginning with IDL 5.1, Alpha VMS uses IEEE representation as well.) 27 ; Modification history: 28 ; 29 ; @history: 28 30 ; 19 Dec 1997 Originally a news posting by David Fanning. 29 31 ; (Re: bits from bytes) … … 36 38 ; return exactly the same results (if IEEE). 37 39 ; 7 May 2003 Added newish data types, unsigned and long64. BT 40 ; 41 ; @version 42 ; $Id$ 43 ; 38 44 ;- 39 45 function binary, number
Note: See TracChangeset
for help on using the changeset viewer.