positive and negative

1. Member
Join Date
Dec 1969
Posts
88

## positive and negative

Hi,<BR><BR>Just a simple question, how do I convert a positive number to negative? ( from 20 to -20, etc)<BR><BR>Thanks<BR><BR>James<BR>

2. Senior Member
Join Date
Dec 1969
Posts
2,854

## RE: positive and negative

Hmmm<BR><BR>posInt = 20<BR><BR>negInt = posInt - (posInt*2)?<BR><BR><BR>Untested...<BR><BR>if it doesn&#039;t work, try<BR><BR>posInt = 20<BR>negInt = cLng("-" & posInt)<BR><BR>Not sure, never tried it, but may work...<BR><BR>someone will probably have a bteer solution.<BR>

3. Senior Member
Join Date
Dec 1969
Posts
7,686

## duh! (amount) * -1 <eop>

.

4. Senior Member
Join Date
Dec 1969
Posts
2,854

## RE: duh! (amount) * -1 <eop>

fair enough... I said someone would have a better solution..<BR><BR>;-) <BR><BR>its friday, I can be forgiven for not thinking on a friday..<BR>

5. Member
Join Date
Dec 1969
Posts
88

## RE: duh! (amount) * -1 <eop>

Many thanks....I am so dumb...

#### Posting Permissions

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