@TiddlyTweeter wrote:
>
>
> Then I attempted a Celsius to Fahrenheit conversion and failed. It needs 
> two steps and I couldn't work out how to do that. 
>
> The °C -> °F is: T(°F) = T(°C) × 1.8 + 32
>

Maybe you guys are doing some kind of challenge with special restriction 
rules, but otherwise I think it can be done like so:


\define CtoF(C) <$macrocall $name=rpn a=<<rpn $C$ 1.8 *>> b=32 operation=+ 
/>


This should work (didn't test it) because Thomas made the rpn macro 
conveniently wikifies the output. Otherwise, one would have to split out 
that inner macro call and use a surrounding setwidget or wikifywidget to 
assignt a variable with the value of the split out macro... and only then 
use that variable in the macrocallwidget.


<:-)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b9144b08-44bb-4a7a-afd3-ab62384083da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to