Not being the brightest bulb in the math department, I was trying to figure out how to display the value of 100000 in decimal format on the debug screen.

So if I have the following loaded into a PVAR called SetPoint

SetPoint[0] = 160
SetPoint[1] = 134
SetPoint[2] = 1
SetPoint[3] = 0

How can I display is as 100000 as opposed to:

00000000000000011000011010100000

Hoping someone can point me in the right direction.

Eric




put 100000 into a PRECISION variable. Using a calculator I found the binary equivalent of 100000 and then took each byte and calculated the decimal value of it and plugged it in as shown below. Obviously this is quite laborious

PRECISION CON 4 SYSTEM
include "NBit_Math.bas"
SetPoint VAR BYTE[PRECISION]
SetPoint[0] = 160
SetPoint[1] = 134
SetPoint[2] = 1
SetPoint[3] = 0