Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extended to Integer typecast - How?

Status
Not open for further replies.

caswellj

Programmer
Jul 20, 2000
3
US
<br>I have a typical graphics problem but don't know how to do it with Delphi.&nbsp;&nbsp;Any suggestions would be appreciated!<br><br>var<br>StartAngle : Extended;<br><br>StartAngle := Arc.Radius * Cos(Arc.StartAngle);<br>//so far, so good<br><br>Image1.Canvas.Arc(...Integer(StartAngle)...);<br>// compiler won't let me do this<br><br>I also tried making StartAngle an Integer and casting the multiplication above, but the compiler wouldn't let me do that either.&nbsp;&nbsp;Any ideas?<br><br>J.C.<br>
 
See the Trunc() function.<br><br>Otto.<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top