You are viewing articles in the Math category &rarr


How to Convert a Byte Value to a Binary String Representation

Posted December 15th @ 1:04 pm by m3Rlin

Delphi offers the IntToHex() function to convert integer values to hex string representations but what if you need to convert a number to a binary not a hex? Well, here’s the code for converting byte values to strings:

function IntToBin(btValue: Byte): string;

function Next(btJ: Byte): string;
[...]

How to Draw a Mandelbrot Fractal on the Form’s Canvas

Posted December 15th @ 1:03 pm by m3Rlin

This source code shows you how to draw a Madelbrot fractal on the form’s Canvas. Although some of the Integer variables could be changed to Byte or Word variables they have not been changed because the Integer type is a native x86 type and calculations on Integers are the fastest.
This function is also (as tip [...]

« Previous Entries