Is there a "float" type that is a Single now and a Double in 64 bit builds?

OS X Cocoa uses a type named “CGFloat” that’s a 32 bit in 32 bit long builds and 64 bit long in 64 bit builds.
Is there a Xojo type that corresponds to that, similarly to Ptr and Integer that also adjust to the target build’s bit size?

Once we get to 64 bit builds then we can probably answer this better
Since everything is 32 bit at the moment the question is kind of moot

So there is none. That’s all I wanted to know.

In my plugins I always use double in that case. Eventually it will be correct.

[quote=44930:@Norman Palardy]Once we get to 64 bit builds then we can probably answer this better
Since everything is 32 bit at the moment the question is kind of moot[/quote]

Just a thought:
I did just use some Cocoa declares with “Single” for “CGFloat”.

I would love to have a similar data type today because it would allow to write now code which works without a change when 64-bit is available.
Without such a data type every declare has to be changed.

Comments?

CGFloat is 32bit on 32bit (single) and 64bit on 64bit (double).
You can fill a feature request for a Float datatype which either is 32bit or 64bit like CGFloat.

You could probably create your own data type, with using Operator_Convert to get the right type when needed.