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,042 |
Nodes: | 15 (1 / 14) |
Uptime: | 16:52:52 |
Calls: | 236,129 |
Calls today: | 11 |
Files: | 60,372 |
D/L today: |
1,039 files (141M bytes) |
Messages: | 290,259 |
Posted today: | 4 |