Decimal Currency Display

Firstly, I hope I'm posting this in the right place. I haven't posted very much to these forums.
Secondly, I'm experimenting with something in VX Ace where I've set the currency unit to Quarters, but I want the gold window to display a decimal value. I already know how to make the window display a dollar sign in front of the currency instead of it saying "___ Quarters", but I don't know how to get it to display decimals. I tried having it display the gold value divided by 4, but it still wouldn't work. It would display the dollar amount, but not the decimals afterwards. What can I do to fix this?

Edit: While trying to get it to work, I did manage to get it to display a decimal value (sort of) by multiplying the value by 0.25 instead of dividing it by 4, but the problem is, if the cent amount ended with a zero (i.e, 50 cents), it wouldn't display the zero at the end. Is there any way to fix this?
@BuggleStrug You could try the following :

Code:
class Window_Base < Window
  def draw_currency_value(value, unit, x, y, width)
    value = format("%.2f", value * 0.25)
    cx = text_size(value).width
    change_color(system_color)
    draw_text(x, y, width - cx - 2, line_height, unit, 2)
    change_color(normal_color)
    draw_text(x, y, width, line_height, value, 2)
  end
end

The above code snippet will print the Currency Unit (which I assume is a dollar sign) followed by the dollar and cent amount.
@BuggleStrug You could try the following :

Code:
class Window_Base < Window
  def draw_currency_value(value, unit, x, y, width)
    value = format("%.2f", value * 0.25)
    cx = text_size(value).width
    change_color(system_color)
    draw_text(x, y, width - cx - 2, line_height, unit, 2)
    change_color(normal_color)
    draw_text(x, y, width, line_height, value, 2)
  end
end

The above code snippet will print the Currency Unit (which I assume is a dollar sign) followed by the dollar and cent amount.

I'm having some trouble getting the code to work, but that's probably because I'm a huge noob when it comes to coding in general, and that I have no idea where to put the code or what to change to get it to work. I really appreciate it though!
@BuggleStrug Ah, within the RPG Maker VXA script editor you can scroll to the bottom of the list on the left-hand side until you see 'Materials'. Right-click on a line beneath 'Materials' and select the 'Insert' option. Then copy and paste the code into the empty area on the right. After that, you can press the 'Ok' button, save the project, and then do a playtest.
@BuggleStrug Ah, within the RPG Maker VXA script editor you can scroll to the bottom of the list on the left-hand side until you see 'Materials'. Right-click on a line beneath 'Materials' and select the 'Insert' option. Then copy and paste the code into the empty area on the right. After that, you can press the 'Ok' button, save the project, and then do a playtest.
Yay! It worked! Thank you so much!
@BuggleStrug If that has resolved the query to your satisfaction, please Report your post and ask for the thread to be closed. Mods may not see an individual post, but they will see a Report.
Thanks.
Ah, my apologies. I didn't know that I had to do that.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/decimal-currency-display.117299/