Shared Top Border
  
 
 

Welcome to cmdLine:// Plus!

DOWNLOAD NOW!

Shared Left Border

Home
Version History
Help and Examples
Contact Us

 

Make a point to bookmark this page!  Many features are planned for addition to both Plus! and PRO versions.  Feel free to make suggestions to the Suggestion Mailbox

 
 

Did you know about cmdLine: PRO?

Included with your copy of cmdLine:// Plus! is another program called cmdLine: PRO.  PRO is the best utility for those of you who write scripts or batch files!  Almost all of the commands that are available with Plus! are available with PRO.  PRO also includes a special option to output the results as a SET command to facilitate the setting of local environment variables.  A typical use is renaming or setting a filename to include the current date.  Now, with PRO, you can do this with two lines.

The first line is redirecting the output of CLP.exe to a .bat file, which will contain the
SET varname=value command.

The second line is calling the .bat file to set the variable.

Its that simple!

You'll find the program (CLP.EXE) in the application's program directory


Help and Examples

 
Help on commands:
math:// | date:// | time:// | text:// | text://regex... | reg:// | props://
 

 
math://

Usage

math://<expression>

where <expression> is a mathematical expression 


Examples and explanations:

Where n is any valid number…
And
[values] in square brackets are optional…

  • math://n+n
      adds two numbers

  • math://avg(n1,n2,n3,...)
      returns the average of the numbers in the list (separated by commas)

  • math://n-n
      subtracts two numbers

  • math://n*n
      multiplies two numbers

  • math://n/n
      divides two numbers (returns decimal values)

  • math://n\n
      divides two numbers (returns only integers)

  • math://n mod n
      divides two numbers and returns the remainder

  • math://n^n
      raises a number to the power of another number

  • math://sqr(n)
      returns the square root of a number

  • math://abs(n)
     
    returns the absolute value of a number (removes negative)

  • math://atn(n)
      returns the arctangent of a number

  • math://cos(n)
      returns the cosine of a number

  • math://hex(n)
     
    returns the Hexadecimal value of a decimal number

  • math://int(n) or math://fix(n)
      returns the integer portion of a decimal number

  • math://oct(n)
     
    returns the octal value of a decimal number

  • math://rnd([n])
      returns a random number between 1 and 0
      where n is an optional seed value

  • math://sin(n)
      returns the sine of a number

  • math://tan(n)
      returns the tangent of a number

  • math://rgb(r,g,b)
      returns a long integer value that represents a color
      where r is a RED value 0-255
      where g is a GREEN value 0-255
      where b is a BLUE value 0-255

  • math://round(n[, d])
      returns a rounded value for n
      where d is an optional number of decimal places to round to

  • math://n AND n
      Performs a logical conjunction on two values

  • math://n EQV n
     
    Performs a logical equivalence on two values

  • math://n IMP n
      Performs a logical implication on two values

  • math://n NOT n
      Performs logical negation on two values

  • math://n OR n
      Performs a logical disjunction on two values

  • math://n XOR n
      Performs a logical exclusion on two values

  • math://n [> | >= | = | <= | <=] n
      Compares two numbers using ONE of the comparison
      operators between the square brackets and returns TRUE
      or FALSE


Shared Bottom Border
  Part of the iQueue Systems, Inc. family.  

 
iQueue Systems, Inc.  All rights reserved.  ©2003  No portion of this site may be re-produced for any purpose without prior written permission.
Contact webmaster@iqsweb.com for more information