メインコンテンツまでスキップ
バージョン:25.2

units

  • property of a numeric value

    • new in 1.49, changed in 1.67

    • Examples: +

       set width to 2 yards
      put the units of width —> yards
      set width's units to "ft"
      put width —> 2 feet
  • keyword for specifying the units of a value from an expression

    • new in 1.70

    • Examples: +

       set measure to "ft"
      set length to 5 units(measure)
      put length —> 5 feet