Calculator plug-in help

Started by jetxl, Thu 25/09/2003 14:40:21

Previous topic - Next topic

jetxl

How does that sin( and cos( work.
It workes with integers so the value is always 0?

Ben

Well, I've never used the plugin, but you should be able to multiply the sin and cosin functions so that they produce integers other than 0, 1 and -1..

jetxl

Yes, but the computer round them off before I can do that.
for example 2000*(1/2) will be 0. so 2000* sin(60) is 0 as well.
sin( has to be multiplied in the sin( function itself.

SMF spam blocked by CleanTalk