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
floating-point ios objective-c macos


source to share


No one has answered this question yet

Check out similar questions:

2745
Is floating point math broken?
2005
How do I parse a string to float or int?
1939
Difference between decimal, float and double in .NET?
1665
How can I get the UITextField to move upward when there is a keyboard - when starting editing?
1491
How to check if a string is a number (float)?
1479
Limiting floats to two decimal points
1244
How can I sort NSMutableArray with custom objects in it?
1180
How can I check if a string contains another string in Objective-C?
873
Why not use Double or Float to represent your currency?
536
Is there a float input type in HTML5?



All Articles
Loading...
X
Show
Funny
Dev
Pics