[jawsscripts] Re: exponent function

  • From: "Travis Roth" <travis@xxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 1 Nov 2012 07:58:24 -0500

There isn't an exponent function that I am aware of.
You'd have to make your own power() function, something like (pseudocode):
Power(int x, int y)
Var
Int i
I = 0
If y == 0 then
Return 1
EndIf

Wile I < y then
X = x*x
EndWhile
Return x
EndFunction

Remember jaws only handles integers.

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of shane-jawsscripts@xxxxxx
Sent: Thursday, November 01, 2012 6:45 AM
To: 'JawsScriptsList'
Subject: [jawsscripts] exponent function

I know this is probably a silly question but wondering how to do x to the power 
y functions in a script. In any other language I would write x^y or exp(x, y) 
but neither work in a jss. I am a bit embarrassed asking this here but I did 
look in the FSDN and didnÃâât find anything.
 

Thanks,

Shane

 


__________ÃÂÂ

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts


__________ï

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: