[futurebasic] Re: [FB] Doubles from resource?

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

From: Robert Purves <robert.purves@...>
Date: Tue, 5 Jun 2001 19:49:05 +1200
>
>Nope. Maybe I got the resource wrong? The first 8 bytes are:
>
>3FF199999999999A
>
>for the first number, 1.1
>
>If I knew how to write a double to a resource, maybe that would help...


Those 8 bytes are indeed 1.1 in PPC (but not in 68K):

dim myH as handle
myH = fn NewHandle( sizeof( double ) )
myH..nil& = 0x3FF19999
myH..4&   = 0x9999999A

print myH..nil#


Robert P.