val1 := str2int(stmpdwn) / str2int(stmpup) * 100;
val1 := str2int(stmpdwn) / str2int(stmpup) * 100;You cannot divide by 0
So if any of those values are 0 you will get that error. You aren't seeing it because your file stats aren't zero, but any new user would
get that error.
val1 := str2int(stmpdwn) / str2int(stmpup) * 100;You cannot divide by 0
So if any of those values are 0 you will get that error. You aren't seeing it because your file stats aren't zero, but any new user would
get that error.
You cannot divide by 0
So if any of those values are 0 you will get that error. You aren't seeing it because your file stats aren't zero, but any new user would
get that error.
getthisuser;
stmpdwn := mci2str('DL')
stmpup := mci2str('FU');
tmpup := str2int(stmpup);
tmpdown := str2int(stmpdwn);
if str2int(stmpup) > 0 then
begin
val1 := str2int(stmpdwn) / str2int(stmpup) * 100;
uploads := tmpup ;
downloads := tmpdown; end
you are on the right track here. What values are you trying to
calculate?
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 31 |
Nodes: | 8 (0 / 8) |
Uptime: | 131:39:34 |
Calls: | 2,073 |
Files: | 11,136 |
Messages: | 947,522 |