Temp := Sin(2*(Work/23)*Pi)*100;[cut]
dWriteLn('Your physical percentage is '+Temp+'%.');
Unfortunately, math is not my strong spot and I know that there's a simple solution to this somewhere. Can anyone help?
Temp := Sin(2*(Work/23)*Pi)*100;
dWriteLn('Your physical percentage is '+Temp+'%.');
Temp is declared Real. I know I have to convert Temp into an integer value write it out (well, longint) using the doorkit, but when I use Round or Trun I get either zero or a negative value.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,049 |
Nodes: | 15 (0 / 15) |
Uptime: | 106:10:58 |
Calls: | 235,759 |
Files: | 60,336 |
D/L today: |
5 files (244K bytes) |
Messages: | 20,616,130,672 |