Ignore:
Timestamp:
08/07/08 11:32:02 (16 years ago)
Author:
pinsard
Message:

improvements of headers (alignments of IDL prompt in examples)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/LECTURE/binary.pro

    r325 r371  
    1111; 
    1212; @examples 
     13; 
    1314;   Binary representation of 11b: 
    14 ;     IDL> print, binary(11b) 
     15;   IDL> print, binary(11b) 
    1516;     0 0 0 0 1 0 1 1 
     17; 
    1618;   Binary representation of pi (x86: Little-endian IEEE representation): 
    17 ;     IDL> print, format='(z9.8,5x,4(1x,8i1))', long(!pi,0), binary(!pi) 
     19;   IDL> print, format='(z9.8,5x,4(1x,8i1))', long(!pi,0), binary(!pi) 
    1820;      40490fdb      01000000 01001001 00001111 11011011 (x86 Linux) 
    1921;      0fdb4149      00001111 11011011 01000001 01001001 (Alpha OpenVMS) 
    20 ;     IDL> print, format='(8(1x,8i0))', binary(!dpi) 
     22;   IDL> print, format='(8(1x,8i0))', binary(!dpi) 
    2123;      01000000 00001001 00100001 11111011 01010100 01000100 00101101 00011000 
     24; 
    2225;   Some first tests before type double was added: 
    23 ;     print, format='(2a6,4x,2z9.8,4x,8z3.2)', $ 
     26;   IDL> print, format='(2a6,4x,2z9.8,4x,8z3.2)', $ 
    2427;       !version.arch, !version.os, long(!dpi,0,2), byte(!dpi,0,8) 
    2528;       x86 linux     54442d18 400921fb     18 2d 44 54 fb 21 09 40 
Note: See TracChangeset for help on using the changeset viewer.