[jawsscripts] Re: exponent function

  • From: "Jim Snowbarger" <Snowman@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 1 Nov 2012 21:05:31 -0500

I assume of course, you are dealing in integers, and not playing some fixed 
point trick.

How about x^y means

temp = x
while (y > 1)
    temp = temp * x
    y = y-1
endWhile
----- Original Message ----- 
From: <shane-jawsscripts@xxxxxx>
To: "'JawsScriptsList'" <JawsScripts@xxxxxxxxxxxxx>
Sent: Thursday, November 01, 2012 6:45 AM
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â?Tt 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: