The arithmetic subtraction (-) operator returns the difference between two numeric operands.
If the first operand is a number, but the second is a string or a Boolean, the second operand is converted to a number.
Examples:
1 - 2
Result = -1
1 - "JUAN"
Result = 1
100 - "32JUAN"
Result = 68
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |