Ok folks here’s the issue I’m faced with, on the email alerts I have the statvalue returned, however this value is in seconds so I’ve added the formula “/60” to get this in minutes which works, however some values exceed 2 decimal points. I’ve read about the round function for VB, but am not certain how to incorporate it to display the result rounded to 2 decimal points. Below is the code I have.
thresholdInfo=“StatValue:”+CStr(Threshold.StatValue/60) + vbNewLine + _
“Threshold Exceeded:” + CStr(Threshold.StatAlias) + vbNewLine + _
“Advisor:” + CStr(Threshold.CFGObjectID) + vbNewLine + vbNewLine + vbNewLine
the VB Round function (not mine, found on the net) is the below, I just don’t know how to incorporate this into the above.
Example 1
dim x
x=24.13278
document.write(Round(x))
Output:24
Example 2
dim x
x=24.13278
document.write(Round(x,2))
Output:24.13
Any help with this would be greatly appreciated.