ID:165012
 
I need some help on how to make my variables have decimals on them. (I.E: 45.6%, or 56.7)

Can any player be kind to assist me?
Er.. can you be a bit more specific please?
var/number=87.2
if(prob(50.5))world<<"You are a lucky person of getting this message.. a full 50.5% lucky"


- GhostAnime
In response to GhostAnime
I want to add decimals for things like this:[src.name]

I wanna also help make a percentage to them, also with decimals. Thats kind of my specification.
In response to Hugna
mob
verb
checkskill()
usr<<"Your skill is [skill] levels. You are [skillxp/maxskillxp*100]% away from the next level."

If that isn't what you are talking about, you need to be more specific.
In response to Brew777
To be a bit more specific, i'm trying to make Stamina read somewhat like 50.7, and when it lowers somewhat, it could lower like maybe 50.6 or something, but everytime i try to figure it out on my own, it only shows a lower until 1 number is fully depleted.

I just can't find out the right formulae to fix this. I've played other games that can do it, but i dunno how for me.

Edit: Nevermind, i found out.