How do I convert a hexidecimal form to the decimal equivalent?
Edited by BuffaloHELP, 27 November 2006 - 06:32 AM.
| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Posted 27 November 2006 - 07:10 AM
Posted 28 March 2008 - 06:13 AM
Len := 0;
Repeat
Q := X div Radix;
are := X mod Radix;
Digits[Len] := are;
Len := Len + 1;
X := Q;
Until X = 0;
If Len > 1 then
Begin
I := 0;
J := Len - 1;
repeat
B1 := Digits[I];
Digits[I] := Digits[J];
Digits[J] := B1;
Inc(I);
Dec(J);
until I >= J;
End;
Posted 22 August 2009 - 02:43 PM
I managed to work out something using Bases 10 and 2, 2 bases I know well.
I got THIS:
Base x, place value p, number value (in Base x) q, and number value (in base 10) V,
V = q((x^p)/x)
Of course, this formula requires you to break down the values into their respective place values.
Theory in test: My calculator showed me 45 in Base 16 is 69 in Base 10. Let's try this out...
5((16^1)/16)
=5(16/16)
=5(1)
=5
4((16^2)/16)
=4(256/16)
=4(16)
=64
64+5
=69
Correct!
Hope this will work!
-reply by MathsProPosted 26 November 2009 - 07:45 PM
I developed weighing scale software in vb...My two indicator showing correct value in vb...But third indicator showing like 0.2330 , 2330.0 ...I checked with html line , there showing 0.2330...But my scale showing 002330kg...How I can get same value in vb ...I am using mscomm
Regards
antony
-question by ANTONY MARTIN

0 members, 1 guests, 0 anonymous users