hi all

my problem is this.....

let me try and explain how i do it with bascom first.....

i read a 24 bit a/d converter and place the result in ad_data

dim ad_data as long
dim span_counts as long
dim my_result as long

'ad_data is capped to not go higher than 4096999

'ad_data= anything between 0 and 4096999

'span_counts is a var in this case 75000

loop:

my_result= ad_data/span_counts

result=54626653

goto loop

is there no way that one can incorporate long var's into picbasic in the future (will save a lot of time and code space) or is there a work around for this...

so what i basicly need is the same thing just in picbasic.
im not even worried about decimal points.

im a current picbasic user and hope i can find an answer for this one..
dont want to change to bascom and avr's.

Please help!!!!!!!!
thanks
werner