Quote Originally Posted by jcleaver View Post
thanks for the responce however i was not clear enough
i am trying to divide a number by a fraction number

1000/7.5 as a example pbp gives error on the 7.5 or any number with a decimal point

thanks
Then take your numbers, multiply them by 10 beforehand to get rid of the decimal point, do the division, then divide them by 10 afterwards.
PBP does NOT deal with any sort of fractions at all. PBP only deals with straight INTEGERs, whole numbers, no floating points, no decimal points, no halves, no quarters, no tenths, no nothing.

PBP runs on a PIC. A PIC is a microcontroller. A microcontroller runs by 'interpreting' (for lack of a better word) binary code. Binary numbers, base 2 numbering, no matter which language you are dealing with, only have states; 1 and 0, on and off, up or down, left or right, yes or no, true or false, voltage or no voltage, positive or negative, day or night, open or shut, and so on...

There is no 1/2 on, 1/2 up, 3/4 left, partially true, a little voltage, somewhat positive, almost day, 1/2 way open...etc. To do any of these would introduce something that the binary numbering system doesn't not have; a decimal point.
Can you create a decimal point? Sure, in a way. If you couldn't, your PC couldn't handle math, you couldn't calculate pi, do any trig, etc.
I could go on and on...but now I'm bored and somebody can probably pick up the conversation from here...