"Paul A. Dugas" wrote:
> I'll need to build a conduit later on for my current
> application and am wondering what the impact of floating
> point data in synchronized records is. I've never even
> cracked the conduit docs so please be gentle :) All I need
> to do now is make sure I don't do something stupid I have
> to go back a fix later.
>
> So... Is it kosher to have "double" fields in record
> structures?
Very! It is just another data struct. I do this all the time in Datastick Connection.
> Does the conduit API provide hton?() style
> translations for floating point data?
No it does not. You will need to rotate all eight bytes of your double float to get
it on an Intel machine with your own code.
We ended up writing our own byte rotation function of everything from shorts to
doubles.
Steve
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html