Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Changing the sign of a numeric value


Message #1 by "Hugh McLaughlin" <hugh@k...> on Tue, 20 Mar 2001 05:43:25
A silly question, but I cannot find the syntax for changing the sign of a 

numeric value in VB.  Any help would be appreciated.
Message #2 by "TomMallard" <mallard@s...> on Tue, 20 Mar 2001 05:37:52 -0800
number*(-1)



tom mallard

seattle

----- Original Message -----

From: "Hugh McLaughlin" <hugh@k...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Tuesday, March 20, 2001 5:43 AM

Subject: [asp_web_howto] Changing the sign of a numeric value





> A silly question, but I cannot find the syntax for changing the sign of a

> numeric value in VB.  Any help would be appreciated.

> ---





Message #3 by "Hugh McLaughlin" <hugh@k...> on Tue, 20 Mar 2001 08:39:48 -0500
Thanks Tom.  I thought there was an actual function, but I guess not.



-----Original Message-----

From: TomMallard [mailto:mallard@s...]

Sent: Tuesday, March 20, 2001 8:38 AM

To: ASP Web HowTo

Subject: [asp_web_howto] Re: Changing the sign of a numeric value





number*(-1)



tom mallard

seattle

----- Original Message -----

From: "Hugh McLaughlin" <hugh@k...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Tuesday, March 20, 2001 5:43 AM

Subject: [asp_web_howto] Changing the sign of a numeric value





> A silly question, but I cannot find the syntax for changing the sign of a

> numeric value in VB.  Any help would be appreciated.

> ---



Message #4 by Shaun Steckley <SSTECKLEY@P...> on Tue, 20 Mar 2001 08:49:38 -0500
This sounds like what you want???



newvalue = value * (-1)





-----Original Message-----

From: Hugh McLaughlin [mailto:hugh@k...]

Sent: Tuesday, March 20, 2001 12:43 AM

To: ASP Web HowTo

Subject: [asp_web_howto] Changing the sign of a numeric value





A silly question, but I cannot find the syntax for changing the sign of a 

numeric value in VB.  Any help would be appreciated.

Message #5 by "TomMallard" <mallard@s...> on Tue, 20 Mar 2001 06:14:18 -0800
There is formatnumber...it removes the minus sign and adds parens around the

number, but I never found something to just change sign...



formatnumber(num,decimalPlaces,includeLeading,parensForNegative,groupDigits)

.



tom



----- Original Message -----

From: "Hugh McLaughlin" <hugh@k...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Tuesday, March 20, 2001 5:39 AM

Subject: [asp_web_howto] Re: Changing the sign of a numeric value





> Thanks Tom.  I thought there was an actual function, but I guess not.

>

> -----Original Message-----

> From: TomMallard [mailto:mallard@s...]

> Sent: Tuesday, March 20, 2001 8:38 AM

> To: ASP Web HowTo

> Subject: [asp_web_howto] Re: Changing the sign of a numeric value

>

>

> number*(-1)

>

> tom mallard

> seattle

> ----- Original Message -----

> From: "Hugh McLaughlin" <hugh@k...>

> To: "ASP Web HowTo" <asp_web_howto@p...>

> Sent: Tuesday, March 20, 2001 5:43 AM

> Subject: [asp_web_howto] Changing the sign of a numeric value

>

>

> > A silly question, but I cannot find the syntax for changing the sign of

a

> > numeric value in VB.  Any help would be appreciated.



Message #6 by "Hugh McLaughlin" <hugh@k...> on Tue, 20 Mar 2001 09:19:48 -0500
Yes.  Thank You.



-----Original Message-----

From: Shaun Steckley [mailto:SSTECKLEY@P...]

Sent: Tuesday, March 20, 2001 8:50 AM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Changing the sign of a numeric value





This sounds like what you want???



newvalue = value * (-1)





-----Original Message-----

From: Hugh McLaughlin [mailto:hugh@k...]

Sent: Tuesday, March 20, 2001 12:43 AM

To: ASP Web HowTo

Subject: [asp_web_howto] Changing the sign of a numeric value





A silly question, but I cannot find the syntax for changing the sign of a

numeric value in VB.  Any help would be appreciated.



Message #7 by "Drew, Ron" <RDrew@B...> on Tue, 20 Mar 2001 11:56:29 -0500
nbr*(-1)   do not think there is a function to do it or at least I have not

seen one.

Ron



-----Original Message-----

From: Hugh McLaughlin [mailto:hugh@k...]

Sent: Tuesday, March 20, 2001 12:43 AM

To: ASP Web HowTo

Subject: [asp_web_howto] Changing the sign of a numeric value





A silly question, but I cannot find the syntax for changing the sign of a 

numeric value in VB.  Any help would be appreciated.


  Return to Index