Archive: Mathematical functions (e.g. abs() )


Mathematical functions (e.g. abs() )
Dear all,
I would like to do some mathematical calculations like abs/med etc. Can anyone guide me to a plugin available to do the same?

thanks a lot.


See math plugin - {NSISDIR}\Docs\Math, {NSISDIR}\Examples\Math.


If you create math functions, please post some to the wiki as there are none available. I might upload some of which I have when I have time. Also, if you want abs without making the number a float, use this function:

abv(a) (#[a < 0, a *= -1, a])
I cannot rename it to abs because the name is used by the plugin.