home *** CD-ROM | disk | FTP | other *** search
/ HomeWare 14 / HOMEWARE14.bin / prog / ks94an.arj / PRCNTIS.HDR < prev    next >
Text File  |  1994-04-24  |  686b  |  38 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _PrcntOfIs( nVar1, nVar2 ) --> nPercent
  8.  
  9. PARAMETERS:
  10.  
  11. nVar1
  12. nVar2
  13.  
  14.  
  15.  
  16.  
  17. SHORT:
  18.  
  19. Returns "what is Var1 percent of Var2?"
  20.  
  21. DESCRIPTION:
  22.  
  23. _PrcntOfIs() returns: var1 is ?% of var2  (20 is ?% of 250)
  24.  
  25. NOTE:
  26.  
  27.  
  28.  
  29. EXAMPLE:
  30.  
  31. _PrcntOfIs(100,1000) // 10
  32. _PrcntOfIs(100,100)  // 100
  33. _PrcntOfIs(20,100)   // 20
  34. _PrcntOfIs(5,80)     // 6.25
  35. _PrcntOfIs(50,0)     // 0
  36.  
  37. ******************************************************************************/
  38.