Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Calculator %

0 views
Skip to first unread message

Andy Flex

unread,
Nov 5, 2009, 10:19:29 AM11/5/09
to
Hi Folk,

i have a calculator in tbk. There are many functions in AE-Code but not %
function. Have anyone a idea how can i impement a %-function in AE from TB.

thank`s

Andy

Clifton Sleger

unread,
Nov 5, 2009, 10:36:51 AM11/5/09
to
In native use mod
In DHTML you will need to use Javascript to access the % operator.
function tbfunction_calculate(x, y) {
return x % y;
}

Clifton Sleger
PG Software Development

Download your trial copy of the new JavaScript PowerPac for ToolBook!
See the tutorial or download your trial at:
http://www.pgsoftwaretools.com/tutorials
Or check our buy it now page to purchase or download the trial:
http://www.pgsoftwaretools.com/index.html?nav=buyPP

Andy Flex

unread,
Nov 5, 2009, 11:43:28 AM11/5/09
to
Thanks Clifton,

Andy

Darrel

unread,
Nov 5, 2009, 8:06:31 PM11/5/09
to
Hi Andy. I'm not sure this is what you were looking for but here goes.
Create this in the AE: (Num1 * Num2) / 100 = percent. Where Num1 is the
given number and Num2 is the total amount.

Ex. Num1(50) percent of Num2(150) equals 75.

I threw up a simple native .TBK on my website to demonstrate. Feel free to
take it if it will help.

http:\\www.metabol-video.com select toolbook on the top right and then the %
graphic in the gallery.

Excuse the look of the site I was in the middle of a major renovation when I
received a promotion at work.

Andy Flex

unread,
Nov 6, 2009, 3:20:14 AM11/6/09
to
Hi Darrel,

wow...great thank you very much Darrel ..that is it :-))

greetings


Andy

0 new messages