Sign up
    Docs
    • API
    • CLI
    • KCL language reference
    • KCL standard library
      • ::array
      • ::math
      • ::sketch
      • ::solid
      • ::transform
      • ::turns
      • ::types
      • ::units
        • toCentimeters
        • toDegrees
        • toFeet
        • toInches
        • toMeters
        • toMillimeters
        • toRadians
        • toYards
      • appearance
      • assert
      • assertIs
      • clone
      • END
      • helix
      • offsetPlane
      • patternLinear2d
      • START
      • X
      • XY
      • XZ
      • Y
      • YZ
      • Z
    • KCL Samples
    • Tutorials
    • Glossary
    • FAQ
    kcl library reference → std → units → units::toYards

    units::toYardsFunction in std::units

    Converts a number to yards from its current units.

    units::toYards(@num: number(yd)): number(yd)
    

    Arguments

    NameTypeDescriptionRequired
    numnumber(yd)A numberYes

    Returns

    number(yd) - A number