The Check Processor button activate a floating-point computation to check if the
processor of your computer have the "Pentium floating-point bug" discovered in
1994 by a mathematician.
The generalized division-multiplication algorithm for converting decimal real numbers in
other bases is:
Given a real number N expressed in a base b, denoted by N(b).
The number can be expressed as a sum of an integral part NI(b) and a fraction one NF(b), N(b)=NI(b) + NF(b). If we intend to convert the number in a new base q (q>1), we must
first isolate the integral part from the fraction part.
The integral part will
be converted by using the algorithm described in the page Integer Numbers
and will not be reiterated here.
Below is a conversion algorithm for the fraction part of the real number.
Fraction Part. Given a fraction number NF(b) it can be represented in a base q as:
NF(b)=a′-1*q-1+a′-2*q-2+...+a′-m*q-m, where a-j are digits in the new base q.
We must determine the coefficients a′-j, and that is to do by multiplying repeatedly (the original number first and the fraction part of each cycle latter) with the new base:
NF(b)*q=a′-1+a′-2*q-2+1+...+a′-m*q-m+1 ⇒ a′-1 the most significant digit in base q.
By this process we obtain a new fraction part: a′-2*q-1+...+a′-m*q-m+1 that mean N'F(b). The process of multiplying the fraction numbers by q is ended in the moment where desired precision is obtained. In order to realize the check for precision you must realize the difference between two consecutive values for the result and to compare the difference with the desired precision (for example, the precision for money is at two decimals that mean the value to check can be 0.009, typically four decimals for quantities and so on).
The generalized algorithm for this method is:
Step1. |
The fraction part is multiplied by the new base and we obtain an integral part and a fraction part. The integral part is a digit in the new base; |
Step2. |
If the fraction part is 0
Then
the conversion process stops;
Else
take in account the new fraction part as a new number and execute Step1; |
The coefficients are written in the order they obtained and the number is the equivalent in the new base.