代码之家  ›  专栏  ›  技术社区  ›  Thanks

1e100f的值代表什么?

  •  2
  • Thanks  · 技术社区  · 17 年前

    animation.repeatCount = 1e100f;
    

    3 回复  |  直到 17 年前
        1
  •  13
  •   Cœur Gustavo Armenta    7 年前

    根据 this page on Timing, Timespaces, and CAAnimation ,将repeatCount设置为1e100f“将导致动画重复,直到它从层中删除。”

        2
  •  2
  •   Stan R.    17 年前

    我认为它的无限 IEEE 754 浮点格式

        3
  •  0
  •   tomfanning    17 年前

    编辑

    我刚 found the following 在谷歌上。.听起来像你的答案

    animation.repeatCount = 1e100f; // this is infinity in IEEE 754 floating point format