home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l210 / 1.ddi / REFEXAMP.ARC / FORMAT.PRO < prev    next >
Encoding:
Text File  |  1988-06-21  |  458 b   |  13 lines

  1. %====================== format/*              ===============================
  2. Goal: format(X,"this % the %'st % test",is,1,"small")
  3. X=this is the 1'st small test
  4. 1 Solution
  5.  
  6. Goal: format(X,"REALS: Default=%, Exp=%e, Shortest=%g",99E9,99E9,99E9)
  7. X=REALS: Default=98999999999.99999989, Exp=9.9E+10, Shortest=9.9E+10
  8. 1 Solution
  9.  
  10. Goal: format(X,"char=%c, int=%, unsigned=%u, hex=%x",97,-1,-1,-1)
  11. X=char=a, int=-1, unsigned=65535, hex=FFFF
  12. 1 Solution
  13.