Compartir a través de


Numeric Operators

Numeric operators function with all numeric values. The following table lists the numeric operators in order of precedence.

Numeric Operators

Operator

Action

Code

( )

Group subexpressions

(4-3) * (12/nVar2)

**, ^

Exponentiation

? 3 ** 2

? 3 ^ 2

*, /

Multiplication and division

? 2 * 7

? 14 / 7

%

Modulus (remainder)

? 15 % 4

+, -

Addition and subtraction

? 4 + 15

See Also

Reference

% Operator (Visual FoxPro)

Currency Data Type

Double Field Type

Float Field Type

Numeric Data Type

Operators (Visual FoxPro)