- Timestamp:
- 07/23/09 11:18:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_html_output/ToBeReviewed/LECTURE/binary.html
r338 r402 141 141 142 142 <h3>Examples</h3><div class="preformat"> 143 143 144 Binary representation of 11b: 144 145 IDL> print, binary(11b) 145 146 0 0 0 0 1 0 1 1 147 146 148 Binary representation of pi (x86: Little-endian IEEE representation): 147 149 IDL> print, format='(z9.8,5x,4(1x,8i1))', long(!pi,0), binary(!pi) 148 150 40490fdb 01000000 01001001 00001111 11011011 (x86 Linux) 149 151 0fdb4149 00001111 11011011 01000001 01001001 (Alpha OpenVMS) 150 152 IDL> print, format='(8(1x,8i0))', binary(!dpi) 151 153 01000000 00001001 00100001 11111011 01010100 01000100 00101101 00011000 154 152 155 Some first tests before type double was added: 153 156 IDL> print, format='(2a6,4x,2z9.8,4x,8z3.2)', $ 154 157 !version.arch, !version.os, long(!dpi,0,2), byte(!dpi,0,8) 155 158 x86 linux 54442d18 400921fb 18 2d 44 54 fb 21 09 40 … … 161 164 162 165 <h4>Version</h4><div class="preformat"> 163 $Id: binary.pro 3 25 2007-12-06 10:04:53Z pinsard $166 $Id: binary.pro 371 2008-08-07 09:32:02Z pinsard $ 164 167 </div> 165 168 <h4>History</h4><div class="preformat">
Note: See TracChangeset
for help on using the changeset viewer.