Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
-- As for built-in power() function:
|
||||
-- base can be either integer or float; returns float.
|
||||
on pow (base, exp)
|
||||
if exp=0 then return 1.0
|
||||
else if exp<0 then
|
||||
exp = -exp
|
||||
base = 1.0/base
|
||||
end if
|
||||
res = float(base)
|
||||
repeat with i = 2 to exp
|
||||
res = res*base
|
||||
end repeat
|
||||
return res
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue