This does the calculation (although I don’t know if this is over the top and there’s a simpler solution), but I want the calculation to appear in field C.
Be aware that [get[A]] will get the value of the field A for EVERY tiddlers of the wiki, here you will get only a single value because the a variable contains the first result of a filtered transclusion. To get the value of the current tiddler, you can either do a={{!!a}}, a={{{ [<currentTiddler>get[a]] }}}, a={{{ [{!!a}] }}}…
Also note that you can set several variables in a single vars widget. The let widget does the same but with the added bonus to be able to use variables declared inside the same let widget, so you could do this:
In some case it’s not necessary to use variables at all:
{{{ [{!!a}divide{!!b}fixed[1]] }}}
To set the value of a field, you can use the action-setfield widget. It will be triggered within a triggering widget (for example a button widget), and apply the value to the designated field :