- Timestamp:
- 07/23/09 11:18:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_assistant_output/ToBeReviewed/LECTURE/binary.html
r338 r402 106 106 107 107 <h3>Examples</h3><pre> 108 108 109 Binary representation of 11b: 109 110 IDL> print, binary(11b) 110 111 0 0 0 0 1 0 1 1 112 111 113 Binary representation of pi (x86: Little-endian IEEE representation): 112 114 IDL> print, format='(z9.8,5x,4(1x,8i1))', long(!pi,0), binary(!pi) 113 115 40490fdb 01000000 01001001 00001111 11011011 (x86 Linux) 114 116 0fdb4149 00001111 11011011 01000001 01001001 (Alpha OpenVMS) 115 117 IDL> print, format='(8(1x,8i0))', binary(!dpi) 116 118 01000000 00001001 00100001 11111011 01010100 01000100 00101101 00011000 119 117 120 Some first tests before type double was added: 118 121 IDL> print, format='(2a6,4x,2z9.8,4x,8z3.2)', $ 119 122 !version.arch, !version.os, long(!dpi,0,2), byte(!dpi,0,8) 120 123 x86 linux 54442d18 400921fb 18 2d 44 54 fb 21 09 40 … … 126 129 127 130 <h4>Version</h4> 128 $Id: binary.pro 3 25 2007-12-06 10:04:53Z pinsard $131 $Id: binary.pro 371 2008-08-07 09:32:02Z pinsard $ 129 132 130 133 <h4>History</h4>
Note: See TracChangeset
for help on using the changeset viewer.