Here is a little code snippet thing that could be useful if you want to use dollars and cents format for your game:
Wherever you see:
self.contents.draw_text(x, y, width, height, @gold.to_s)
You can replace @gold.to_s with:
format("$%.2f", (@gold/100).to_s)
e.g. 300G becomes $3.00, 495059 gold becomes $4950.59.
Note that the above code treats 1 standard G as being 1 cent in dividing it by 100. This way, you can sell items for $9.99 like in the real shops!

If you want whole dollars (which is kinda pointless) just change the code to:
format("$%.2f", @gold.to_s)
If you want to omit the $ sign, change to:
format("%.2f", (@gold/100).to_s)
Credits:This Discussion on Ruby-Forum