Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript Negation and Subtraction Operator (-)

Used to find the difference between two numbers or to indicate the negative value of a numeric expression.

Syntax: VBScript Negation and Subtraction Operator (-) 1

result = number1-number2

Syntax: VBScript Negation and Subtraction Operator (-) 2

-number

Arguments: VBScript Negation and Subtraction Operator (-)

result

Any numeric variable.

number

Any numeric expression.

number1

Any numeric expression.

number2

Any numeric expression.

Remarks: VBScript Negation and Subtraction Operator (-)

In Syntax 1, the - operator is the arithmetic subtraction operator used to find the difference between two numbers. In Syntax 2, the - operator is used as the unary negation operator to indicate the negative value of an expression.

If one or both expressions are Null expressions, result is Null. If an expression is Empty, it is treated as if it were 0.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.