Anachronistic weight conversion

\define pounds2kgs(lbs) <<rpn $lbs$ 2.20462 / 2>>  
\define stones2pounds()
<$wikify name="stonelbs" text='<$macrocall $name="rpn" a=$(stones)$ b=14 
operation="*"/>'>

<$wikify name="totlbs" text='<$macrocall $name="rpn" a=<<stonelbs>> 
b=$(pounds)$ operation="+" />'>

$(name)$ weighs <$macrocall $name=pounds2kgs lbs=<<totlbs>>/> kgs

</$wikify>
</$wikify>

\end
!! Anachronistic Weight Calculator
Name of person: <$edit-text tiddler="temp/stone/person" tag="input" size=50 
default="Enter Name"/><br/>
Weight, stones: <$edit-text tiddler="temp/stone/stones" tag="input" size=10 
placeholder="Weight in stones" default="0"/><br/>
Weight, pounds: <$edit-text tiddler="temp/stone/pounds" tag="input" size=10 
placeholder="Weight in pounds" default="0"/>

<$vars name={{temp/stone/person}} stones={{temp/stone/stones}} 
pounds={{temp/stone/pounds}}>

<<stones2pounds>>

</$vars>





-- 
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/7e2d44f3-be9f-48bd-8808-261bce6477f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to