Can Float32 ever be equal to float in Objective-C?

The ObjC library functions seem to be used Float32

and float

interchangeably. For example, the Accelerate framework declares function arguments as float

(and double

), where you can see Float32

used in AudioUnit declarations.

If you are dealing with sound, a lot of values ​​end up around these frameworks. The question for me (as someone who usually prefers keywords over typedef like float

over Float32

) is what datatype to use in my own declarations? Could it Float32

be for example not the same as float

?

+3


source to share





All Articles