ID:156532
 
I'm sure I am going to receive the slam for this simple question. However I have racked my brain and the DM reference with no direct success.

In my project I am working on I have number values representing money that is displayed in several regions on the interface. However I realize that when DM displays these numbers it drops the 0 at the end. For example if the change amount comes out to $1.10 it will only show $1.1 I know what this means, but I am trying to make it user friendly for the people that actually have to use this.

So again my question in simple form. Is there away to display the full number in the series.

Thanks
use round() proc, and change the second argument like so:
var/a = round(1.232131, 0.01)
src<<a


that should work :)
Here's a snippet that does that:
http://www.byond.com/members/Jtgibson/forum?id=51
mob/var/money = 200.1
mob/verb/Show_Me_The_Money()
src << "You Have [round(money)]"


i think thats the easiest code that you will understand
In response to Taha123
Thanks all, however I have already been using the round proc. I even have it set to display to the tenths of the cent. Just for whatever reason I am not sure if it is when I convert the data to another format IE text/num because both are used in various ways of saving the data. But thanks to all for your help!