
Originally Posted by
kwelna
It is about 20 pages long. basically it lists the functions available in pic basic and a single line about syntax. in my case it is the "Let" function. So
Here is the only reference to division:
{LET} Var = {-} Value { Op Value}
Assigns a value to a variable. the valuemay be a conmstant, the value of another variable or the result of one or more binary operations. The operations are performed strictly left to right and all operations are performed with 16-bit precision. Unary negation may only be performed on the first value.
It then lists a number of mathamatical opoerators {+, -, \, \\,....} and some boolean operators { and , or, xand, .....etc}. Nothing about truncating a number, rounding, absolute value, ...etc.
I think I have a way out, I do the division and instead of truncating and rounding off and look=king for (X = a number 1 to 5) i can test for (X <= to a number). So anything (<= to 1) is 1, (<= to 2) is 2...etc. what do yo think?
Bookmarks