Results 1 to 2 of 2

Thread: How to use the number "pi" in Visual Basic?

  1. #1
    Cris
    Guest

    Unhappy 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

  2. #2
    New Member
    Join Date
    May 2001
    Location
    Calle
    Posts
    9
    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
  •  



Click Here to Expand Forum to Full Width