Category: floating point
It might seem obvious at first that the following expression in C/C++ (or any other) programming language evaluates to true, in most of the cases (well, Javascript may also …
In Delphi/Object Pascal, the random function returns a float number that is between 0 and 1 inclusive. If you want to get a random number between two float numbers …
This article provides some Javascript functions for common financial calculations. It can be easily adapted to other programming languages as well, because the formulas themselves are not complex at …
February 26, 2014
c / c++, code, code library, floating point, implementation, linux, math, programming languages, tools / utilities, windows, windows command shell
The famous quote for Linux Shell is ‘Where there is a shell, there is a way’. It reflects that the Linux Shell (e.g. BASH) is so powerful that almost …
May 31, 2013
compiler, delphi, floating point, implementation, interpreter / compiler, math, object pascal, optimization, programming languages, technical, tricks, windows
In Delphi, you can use the keyword absolute to force the union variable. e.g. Two variables share the same memory location, which is good to do some tricky things, for example, …