hopefully this is something easy.. i have a reporter to show how much i have completed in attaining a level (shows as a percentage) - very basic subroutine:
sub expreport (strTriggerName, trig_line, arrWildCards)
dim exp
dim explevel
dim percent
exp = World.GetVariable("exp")
explevel = World.GetVariable("explevel")
percent = exp / explevel * 100
world.EchoInput = 0
World.send "grouptell unused exp : " & exp & ". level completed : " & percent & "%\a01"
world.EchoInput = 1
end sub
where the exp variable = unused experience points so far, and explevel variable = exp points required for next level. No worries there. All i'm wanting is to have the % result display to only 2 deciaml places, not 7 or so like it is most of the time now.. Anyone able to guide me with this?
sub expreport (strTriggerName, trig_line, arrWildCards)
dim exp
dim explevel
dim percent
exp = World.GetVariable("exp")
explevel = World.GetVariable("explevel")
percent = exp / explevel * 100
world.EchoInput = 0
World.send "grouptell unused exp : " & exp & ". level completed : " & percent & "%\a01"
world.EchoInput = 1
end sub
where the exp variable = unused experience points so far, and explevel variable = exp points required for next level. No worries there. All i'm wanting is to have the % result display to only 2 deciaml places, not 7 or so like it is most of the time now.. Anyone able to guide me with this?