Calculate plugin: How do these functions work??

Started by Silbad, Sun 21/12/2003 16:03:27

Previous topic - Next topic

Silbad

Some questions again about a plugin I can't manage to make work... ;D

1. What is the interest of the functions AddNumbers (int, int), SubtractNumbers (int, int), DivideNumbers (int, int) and MultiplyNumbers (int, int)? You can calculate these values using +, -, / and *, can't you ? This escapes me...

2. What the RaiceToPower function is supposed to do ? When I use it, it acts like AddNumbers !

3. Same question for the FindPercent function : it always returns the value 0 !

4 For the GetCos function, that's okay, I just understand that the parameter is the angle in radians, not in degrees. But GetSin always returns 0 whatever value I specify...

Pumaman

I believe that plugin is also written by Erica, you'd need to ask her.

Quote1. What is the interest of the functions AddNumbers (int, int), SubtractNumbers (int, int), DivideNumbers (int, int) and MultiplyNumbers (int, int)? You can calculate these values using +, -, / and *, can't you ? This escapes me...

I think she added these as a sort of test for the plugin system but forgot to remove them.

As for the others, I don't know - has anyone else here used the Calculator plugin?

SMF spam blocked by CleanTalk