scripting@wanadoo.nl




Exp()

http://www.scriptlogic.com/kixtart/FunctionLibrary_FunctionList.aspx


actual FunctionLibrary list on 'Scriptlogic' site printer-friendly mirror of UDF topic on 'scripting@wanadoo.nl' site close
9 January 2002 Exp()
AuthorScriptLogic Corporation
Action Mathematical Exponentiation.
SyntaxExp (base, power) 
Parameters
  • base (Required / Numeric)
  • power (Required / Numeric)  
  • RemarksUseful when computing bit-masked registry values (such as HideDrives Policy). 
    ReturnsReturns the result of base raised to the specified power. 
    DependenciesNone. 
    Examples
    $x=2
    $y=10
    $result=Exp($x,$y)
    
    ?'The result of '+$x+' raised to the power of '+$y+' is: '+$result
    
     
    Source
    FUNCTION Exp ($base, $power)
      DIM $sub
      $base=0+$base
      $power=0+$power
      $exp=1
     :exploop
      IF ($power > 0)
        $exp=$exp*$base
        $power=$power-1
        GOTO exploop
      ENDIF
    ENDFUNCTION ; - Exp -
     
      original source of UDF topic. show actual FunctionLibrary list on Scriptlogic site close top
              printer-friendly mirror of UDF topic on scripting@wanadoo.nl site  




    Copyright © 2003 www.scriptlogic.com & scripting@wanadoo.nl - last updated on 20 May 2003


    Site Meter