[futurebasic] Re: [FB] FB5 data file conversion help

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2011 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Sat, 4 Jun 2011 17:12:56 -0700
On Jun 4, 2011, at 4:58 PM, Douglas Stemen wrote:

> Brian & Deep,
> I appreciate your help. Will work with this tomorrow. 
> I assume all FB4 short and long integers work with the 16 bit version.
short is 16 bit, long is 32 bit.  To check a size: PRINT sizeof(someVariableType)

> Are double precision (decimal number) 32 bit?

See previous post ( shown below ). The calls in Subs FloatByteSwapping.incl handle doubles/singles. Doubles are 64 bits:

On Jun 4, 2011, at 9:46 AM, Brian S wrote:
> Subs FloatByteSwapping.incl is for doubles/singles.

> I am concerned about speed.
The swap calls don’t add a lot of time. I believe Robert P. posted sample times in post some time in the past.

> I could convert variables to text to save this step but the the file sizes could get enormous.
Try the swaps first before embarking on new code. Swaps should slide right in and just work.

Brian S