Function Of An Integer Raised In A Power Snippets


Function of an integer raised in a power * and the calculation of the sum of a series of integers (1^e+2^e....+n^e) raised in a power.

Function of an integer raised in a power * and the calculation of the sum of a series of integers

11 May, 2017   

The following code uses bitwise operators to determine if an unsigned integer, x, is a power of two.

Python code example for Grid made by the Label with Raised border

10 November, 2012   

It will return a string of words to represent the integer part of this value.

13 February, 2014   

Just got inspired last night and decided to start a class to get the screen in "blocks" and check which one has changed to update only those.

In Delphi, procedural types (method pointers) allow you to treat procedures and functions as values that can be assigned to variables or passed to other procedures and functions. Here's how to call a function (or procedure) as a parameter of another function (or procedure) : Declare the function (or procedure) that will be used as a...

06 February, 2013   

Delphi code for Hexadecimal to Integer

28 April, 2011   

Over the years I have made quite a few software programs in Delphi, and inevitably I have also come up with many useful functions. Most of them I have never published on the Internet before, now I would like to list on blog. Part 1 are functions for managing integer or real numbers, they were written very early in 1997.

17 October, 2011   

Just create a new module called modEnumWindows in your project and copy this code into it. The function getWindowList does the trick.

22 February, 2016   

C/C++ source code for euler approximation method

03 December, 2013   

Delphi code to return type of drive that contains the given (full) path.

Example for using thousand separator (,) for decimal integer numbers

Example for using thousand separator (,) for decimal integer numbers

The following code snippet paints a gradient between 2 colors on the entire form. It uses Win32 API in order to get the best performances. 'You can change the colors of the gradient by changing the RGB values passed to PaintGradient function. Written by Nir Sofer

19 June, 2012   

Adjusts the brightness of a color by a specified amount in range -255..255.

01 March, 2011   

Function that generates random passwords.

19 September, 2013   

Function to test for the existence of at least 1 matching row, without having to count them all!

04 July, 2011   

Here are the Python code Checkbox menu

This function is used to reverse an integer array. For example, if the array is {1,2,3,4,5}, these functions will return an array like {5,4,3,2,1}. The user needs to pass in a pointer to the array and the size of the array, and the function will return a pointer to an array in the reverse order.