realbasic-plugins
[Top] [All Lists]

Re: WIN: How to convert a Fixed type to a double and vice versa?

To: realbasic-plugins at lists dot realsoftware dot com (REALbasic Plugins)
Subject: Re: WIN: How to convert a Fixed type to a double and vice versa?
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Sun, 8 May 2005 20:31:42 +0200
Comments: Written on a PowerMac G4 and sent via DSL.
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
Alfred Van Hoek <vanhoek at mac dot com> wrote:

> The MacOS toolbox provides apis that convert a double to a Fixed and a Fixed
> value to a double: X2Fix and Fix2X. I haven't discovered such apis on
> windows. Of course it should be possible to implement such a function based
> on converting a long to a Fixed value and vice versa:

Fixed f=...

double d=f/65536.0

doesn't this work?

Mfg
Christian

-- 
Nine thousand functions in one REALbasic plug-in. The MBS Plugin.
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>