Heres another - difference between numbers

# Thread: Heres another - difference between numbers

1. Senior Member
Join Date
Dec 1969
Posts
511

## Heres another - difference between numbers

How do i say work out the difference between two numbers say 15 and 5 and how do i then say only do something if it returns a positive value?<BR><BR>Thanks for help as always

2. Senior Member
Join Date
Dec 1969
Posts
16,931

## RE: Heres another - difference between numbers

If (Number1 - Number2) &#062; 0 Then<BR> ...<BR>End If<BR><BR>Craig.

3. Senior Member
Join Date
Dec 1969
Posts
11,247

## is 0 positive or negative?

if you want if 0 then <BR>If (Number1 - Number2) &#062;= 0 Then

4. Senior Member
Join Date
Dec 1969
Posts
16,931

## Very true.

Technically it&#039;s neither positive or negative, as positive numbers are defined as being greater than zero, and negative as less than zero.<BR><BR>But you&#039;re right. In this case, he may want positive or zero.<BR><BR>Craig.

5. Senior Member
Join Date
Dec 1969
Posts
511

## that simple eh! eop

.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•