search

Home  >  Q&A  >  body text

ios - 0X100000000LL 什么意思? 1?

迷茫迷茫2832 days ago1068

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-04-18 09:27:20

    ll is an integer constant followed by a suffix

    General suffixes are:
    Unsigned number u U
    Floating point number f F
    Long integer l L
    Long integer LL ll

    Reason for using suffix

    float f = 3.22
    系统默认3.22 是double 类型,所以赋值过程中进行一次强制类型转换 double -> float
    float f = 3.22f;
    加上后缀就会存在转换,明确告诉系统是float类型

    reply
    0
  • 怪我咯

    怪我咯2017-04-18 09:27:20

    0X100000000LL represents a long integer in hexadecimal
    Converted to decimal, it is 4294967296, which is 2 to the 32nd power

    reply
    0
  • Cancelreply