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,166 |
| Nodes: | 17 (0 / 17) |
| Uptime: | 419:53:53 |
| Calls: | 509,423 |
| Calls today: | 9 |
| Files: | 262,756 |
| D/L today: |
6,070 files (1,677M bytes) |
| Messages: | 469,911 |
| Posted today: | 5 |