忘備録

日々の調べ物をまとめる。アウトプットする。基本自分用。

【Objective-C】NSIntegerがあって、NSDoubleがないわけ

objective c - Do NSDouble, NSFloat, or other types than NSInteger exist? - Stack Overflow

NSInteger exists because the int type varies in size between 32-bit and 64-bit systems. float and double don't vary in size the same way, so there's no need to have wrapper types for them.

int型はOSが32bitか64bitかでサイズが変化するためラップしているけど、doubleやfloatはそうではないからないそうです。。