I have to ask, why convert everything to Steem, instead of starting from the displayed number?
You try to reject it, but you end up having to divide and then multiply by the price feed, instead of simply multiply by it.
144 STUs, or the number shown. Then after you cut out a quarter, you're left with 108. Half of that is SBD, or 54. Bam, done. The other 54 become 9 Steem. Seems cleaner to me :3
Thanks for the suggestion! I will likely do this with a few other adjustments.