CodeDelphiHow-To'sNews

Getting Big with Pi in Delphi

When I was very young and first learned about Pi they told me 3.14 was a good approximation, but it was an irrational number that went on forever, and people with computers were able to calculate many digits. I had a computer (Commodore Vic 20) and wanted to see how many digits of Pi I could calculate. This is when I discovered floating point number precision limitations, which foiled my first…
Read more
CodeDelphiNews

Calculating Pi in Delphi for Pi Day 2023

Update: I revisited the calculation of Pi with even more digits. In the United States today, March 14th is  π day (3rd month, 14th day, or 3/14). Traditions involve eating pie, the pastry, and calculating Pi, the irrational mathematical constant. Animation of the act of unrolling a circle’s circumference, illustrating the ratioπ. Edited by John Reid [CC BY-SA 3.0] via…
Read more
C++Code

Discover The String Operations And More Great Features Of C++

Hello C++ Developers, This week we have an abundance of topics about strings, which mostly include String Operations in Modern C++. We will learn to use the find() string method as well as exception handling in C++. One of the great features of C++ Builder’s VCL and FMX frameworks are forms and the form designer which makes it so easy to create and visualize the user interface for your…
Read more
C++Code

This is How To Sort in Modern C++

Hello C++ developers. this week we have more modern C++ examples that can be compiled by any C++ IDE and compiler. If you want to dive deep into C++ programming, then the LearnCPlusPlus website is the right place for you. We keep adding more features of modern C++ and how…
CodeDelphiTech Partner

How To Record Exact Operation Execution Time With Delphi

To know how to get the information on the exact execution time of an operation in your Windows and cross platform apps can be useful in all sorts of circumstances. For example, it can be necessary when you need to show users the time spent on the execution of a long operation (by the way, in such a situation, high accuracy is rarely required). Or you may need to know the exact time needed for…
Read more