Hey forgetfulfellow,
Thanks for your reply! The example number, "50" was hardcoded in there as follows:
divided = 50 / goldenRatio
multiplied = 50 * goldenRatio
So I just swapped it to "input" so that it would work dynamically:
divided = input / goldenRatio
multiplied = input * goldenRatio
This works great!
However, what would be optimal is if the two answer numbers were visible upon typing "golden 50"(much like when you enter a basic math equation, such as "2+2", you see "4" immediately, with action to copy). This would be a lot more helpful as I could get a quick reference at a glance without having to copy to the clipboard if I don't need to.
My photoshop is better than my coding, so maybe this will help give an idea of what I'm thinking:
If it would be difficult to get both to show up like that, then having just the larger number only would still be nice.
Actually, now that I think about it, entering "50" would produce 80.9... which, ideally would round up to "81" rather than truncate to "80". While I suppose it would be handy for some to have the number out to a couple decimal places, I'm really only needing the whole number for my purposes, as I'm dealing with pixels in my designs.
Thanks for your efforts thus far!