Changeset 372 for trunk/SRC/ToBeReviewed/STRING/strsci.pro
- Timestamp:
- 08/08/08 14:31:53 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/STRING/strsci.pro
r325 r372 2 2 ; 3 3 ; @file_comments 4 ; Given a number, returns a string of that 4 ; Given a number, returns a string of that B 5 5 ; number in scientific notation format ( e.g. A x 10 ) 6 6 ; … … 39 39 ; 40 40 ; @examples 41 ; Result = STRSCI( 2000000, format='(i1)' ) 42 ; print, result 43 ; ; 6 44 ; ; prints 2 x 10!u6!n, which gets plotted as 2 x 10 41 ; 42 ; IDL> Result = STRSCI( 2000000, format='(i1)' ) 43 ; IDL> print, result 44 ; 2 x 10!u6!n 45 ; 46 ; which gets plotted as 2 x 10 45 47 ; 46 ; Result = STRSCI( -0.0001 ) 47 ; print, result 48 ; ; 4 49 ; ; prints -1.00 x 10!u-4!n, which gets plotted as 1.00 x 10 48 ; IDL> Result = STRSCI( -0.0001 ) 49 ; IDL> print, result 50 ; -1.00 x 10!u-4!n 50 51 ; 51 ; Result = STRSCI( 0d0, format='(f13.8)' ) 52 ; print, result 53 ; ; 54 ; ; prints, 0.00000000 52 ; which gets plotted as 1.00 x 10 53 ; 54 ; IDL> Result = STRSCI( 0d0, format='(f13.8)' ) 55 ; IDL> print, result 56 ; 0.00000000 55 57 ; 56 58 ;
Note: See TracChangeset
for help on using the changeset viewer.