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,038 |
Nodes: | 15 (0 / 15) |
Uptime: | 27:34:27 |
Calls: | 865 |
Calls today: | 16 |
Files: | 95,180 |
D/L today: |
14,812 files (1,485M bytes) |
Messages: | 465,160 |
Posted today: | 1 |