How does delphi PI get it?

Source: Internet
Author: User
Tags constant definition
How does delphi PI get it? Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiBase/html/delphi_20061205223540274.html
I want to use PI computing in Delphi. Can I directly call a function?
Do I have to write a constant Pi = 3.141592653?

I don't know if there is a constant definition in math. Pas? I am not eager to install Delphi here...

With this constant
Pi
System Unit

How to call it? Specific points

Oh, in that unit,

You just need to reference that unit in uses.

How can I add System in uses?
'Redeclared: 'system' Error

Well, it indicates that uses is already in use.

Directly use the PI constant to check if it is available

Showmessage (floattostr (PI ));

No, the return value is 0.
What is going on?

I just installed DELPHI6 and tried it. It's all right ..
If you have not solved the problem, pasteCode

Pi is about 3.14159265358979323846264338327950288
Oh... I used to recite this.

OK

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.