Subj : Trying
To : Sean Dennis
From : Jake Ng
Date : Sat Jul 02 2005 01:53 pm
Re: Trying
By: Sean Dennis to All on Sat Jun 04 2005 07:20 pm
> 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.
you can convert a Real number to a printable string like so:
Str( <#> : <width> : <decimals> , <string> );
ex: Str(Temp : 3 : 1, TempStr);