Right, it hasn't reached version 1.0 yet, mainly because there's 2 functions to add... the $CML_round(n1)$ function, and the rest of the $CML_decimal( P/S/M;n1;n2 [;nx;nx+1...] )$ function.
But I am releasing this to the public to make sure there aren't any bugs that I've missed so far.
There's the decimal function: $CML_decimal( D;n1;n2 )$ which returns a decimal string of a number devided by another number.
We also have these functions:
$CML_add(n1;n2[;nx;nx+1...])$ (adds numbers together... for example: set numeric <result; $CML_add(1;2;3;4;5)$ > ... Result = 15 )
$CML_sub(n1;n2 [;nx;nx+1...])$ (subtracts subsequent numbers from the first... EG. set numeric <result; $CML_sub(30;1;2;3;4)$ > ... Result = 20 )
$CML_mult(n1;n2 [;nx;nx+1...])$ (multiplies numbers together... EG. set numeric <result; $CML_mult(1;2;3;4;5)$ >... Result = 120 )
$CML_div(n1;n2)$ (devides n1 by n2... ONLY n1 and n2!)
Hope people can use this, and also suggest other functions for maths.
I have done this mainly because I don't like only two calculation in quest right now... So now you can do this:
set numeric <$CML_add(3;5;2)$ * $CML_div(50;2)$ >
which is 3 different actions, but also 5 seperate set's in one.
Once again, suggestions are welcome here.
I'm thinking about the following myself right now:
$CML_equ(
#function#;n1;n2 [;nx [
functionx;[
functiony];m1;mx]])$ so you could in fact have this:
$CML_equ(P;3;5;2;M;D;50;2)$ to do the stuff above in one call... also:
$CML_equ(P;1;2;M;3;P;S;50;25)$ would result is (3*3)+(50-25) = 31
I shall have to think it over some though... Your thoughts are welcome (again)...
::EDIT::
Forgot the link:
http://www.compwhizz.freeserve.co.uk/cmathlib.zip