Scientific Calculator

(public) tstone7051/Sign

By tstone7051 T. Stone P.H.D.

test scricpt, displays whether input number is positive, negative, or zero.

Tagged: neg negative; pos pos/neg positive; sign; sign? zero;

var Sign=Funtion(s) 
 {
(s==0) ?  "this number is zero" :
(s<0) ? "thisnumber is negative" :
(s>0) ? "this number is positive" :
"try again"
}

spam? | offensive?

0 Comments

Sign in to leave a comment