> My WikiCalc value gives a number with a lot of decimal places.
> Obviously this doesn't work to round it:
>
> math.round(<<wikiCalc "%0/(%1*%1)*%2" "w...@weight" "hei...@height"
> "703">>*10)/10
>
> and if I surround that with <script> ... </script> the wikiCalc macro
> doesn't work.

The javascript expression, including the use of Math.round(...), has
to be completely inside the first parameter, like this:

<<wikiCalc
   "Math.round(%0/(%1*%1)*%2)*10)/10"
   "w...@weight"
   "hei...@height"
   "703"
>> ...

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to