|
-
Sep 10th, 2001, 06:42 AM
#1
How to use the number "pi" in Visual Basic?
Hi everyone,
I have to pass numbers expressed in radians to numbers expressed in degrees. It simply consist of multiplying by (180/pi). You know, pi=3,1416.... However, when I try it, visual basic doesnt recognize the number pi. (You can try to do the following sentence on the inmediate window: a=2*pi; ?a; return). I dont undestand it because I have looked the subject up the vb help and it tells me the same solution: I simply must do the product between the number and (180/pi).
Can anyone help me?
Thanks,
Cris
-
Sep 10th, 2001, 06:53 AM
#2
New Member
MSDN say
Private Sub Form_Click ()
Const PI = 3.14159265
Circle (3500, 1500), 1000, , –PI / 2, –PI / 3
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|