[Pmwiki-users] Re: calculating directives ?
Knut Alboldt
mailing
Sat Jun 19 11:41:52 CDT 2004
Hi !
At 03:17 19.06.2004, you wrote:
>Knut, I did not adapt the syntax. My code does this markup:
>
> ?formula? prints result of formula (and stores it in ?$?)
> ?formula=$var? prints the *formula* and stores result in $var
> ?$var? prints $var
>
>It allows you to do something like:
>
> Contributions total (?11.10 * 10=$?) = M$?$?
> Contributions total M$?11.10 * 10?
>
>and have it printed as:
>
> Contributions total (11.10 * 10) = M$111.00
> Contributions total M$111.00
>
>Most math functions are supported, including the very useful round(). Any
>other function is easily added.
>
>However it does not do this, I didn't get to this:
>
> You know ?1=$a?+?1=$b? is ?$a+$b?
>to print as
> You know 1+1 is 2
>
>Which is obviously the kind of app you want.
But this looks really good ! Maybe I can add the other features somehow
>Goodluck,
Thanks
Knut
PS: how do you input the "<<" ">>", is it a key on your keyboard ? If yes,
which layout ?
More information about the pmwiki-users
mailing list