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,043 |
Nodes: | 15 (0 / 15) |
Uptime: | 48:37:39 |
Calls: | 236,231 |
Calls today: | 17 |
Files: | 67,657 |
D/L today: |
108 files (93,486K bytes) |
Messages: | 290,227 |
Posted today: | 3 |