![]() In relative comparison we see how many times one value bigger/smaller than another. What is the difference? When we talk about absolute comparison we compare numbers using absolute difference between them. Also such a comparison may be absolute or relative. The right way to compare them is using some tolerance, like a is equal to b only if they differ not more than by 0.001. You might know that in programming strict comparison does not work for float numbers. Some of them is for π and its variations and some are so called tolerances. Most of the objects there are mathematical objects like point, rectangle, vector, matrix, plane and so on. It consists only of template objects and doesn't require compilation. So, what is NTL? It is Nitisa Template Library. It will help you to observe it and also it has tutorial projects. ![]() If you install Nitisa as an extension for Visual Studio it might be difficult to find where the source code is so we recommend to download framework as source code as well. If you look inside Nitisa source code, which you can download right here, you may see there a folder (and a project in the Nitisa solution) called NTL. You will also learn how to compare float numbers properly. We also show how to work with StringGrid widget alongside with some other ones you may be familiar from previous tutorials. In this tutorial we will explain what NTL is and how to use it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |