I’m trying to output a number with exactly two decimal points (basically currency in number form). I’m running into the issue where something like ‘120.60’ would become 120.6 as a number. I’d like to have it always output two decimal points. How can I accomplish this?
I attempted to use Ruby’s sprintf method, but looks like I’m not able to do so here.
It’s definitely possible for me to manipulate this data in my project, but I’m hoping I don’t need to.