#1   Report Post  
Posted to microsoft.public.excel.misc
CJ
 
Posts: n/a
Default what is sgn?

A discusion group entry on 4/20 contained the following formula:

q = -(b + sgn(b)*sqrt(b^2-4a*c))*0.5

in relation to the quadratic function.
What is sgn? Does it appear in Excel 2000?
Thanks everyone.
CJ
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ken Johnson
 
Posts: n/a
Default what is sgn?

Hi CJ,

sgn is a VB math method that returns -1,0 or 1.
sgn(b) = -1 if b<0, 0 if b=0 and 1 if b0.

I'm pretty sure it would be in all versions of Excel

The Worksheet function equivalent is called SIGN.

Ken Johnson

  #3   Report Post  
Posted to microsoft.public.excel.misc
CJ
 
Posts: n/a
Default what is sgn?

Thank you, SIGN is: "Determines the sign of a number. Returns 1 if the
number is positive, zero (0) if the number is 0, and -1 if the number is
negative." quoted from Excel 2000.

Thanks again



"Ken Johnson" wrote:

Hi CJ,

sgn is a VB math method that returns -1,0 or 1.
sgn(b) = -1 if b<0, 0 if b=0 and 1 if b0.

I'm pretty sure it would be in all versions of Excel

The Worksheet function equivalent is called SIGN.

Ken Johnson


  #4   Report Post  
Posted to microsoft.public.excel.misc
Ken Johnson
 
Posts: n/a
Default what is sgn?

You're welcome CJ

Ken Johnson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"