PSPDFMeasurementPrecision

Objective-C

enum PSPDFMeasurementPrecision : NSInteger {}

Swift

@frozen enum MeasurementPrecision : Int, @unchecked Sendable

The smallest value to which measurements will be rounded. Either a number of decimal places or a fraction.

  • Round to whole numbers. For example: 3.

    Declaration

    Objective-C

    PSPDFMeasurementPrecisionWhole

    Swift

    case whole = 0
  • Round to one decimal place. For example: 3.1.

    Declaration

    Objective-C

    PSPDFMeasurementPrecisionOneDecimalPlace

    Swift

    case oneDecimalPlace = 1
  • Round to two decimal places. For example: 3.14.

    Declaration

    Objective-C

    PSPDFMeasurementPrecisionTwoDecimalPlaces

    Swift

    case twoDecimalPlaces = 2
  • Round to three decimal places. For example: 3.142.

    Declaration

    Objective-C

    PSPDFMeasurementPrecisionThreeDecimalPlaces

    Swift

    case threeDecimalPlaces = 3
  • Round to four decimal places. For example: 3.1416.

    Declaration

    Objective-C

    PSPDFMeasurementPrecisionFourDecimalPlaces

    Swift

    case fourDecimalPlaces = 4
  • Round to whole inches. For example: 5.2510856265 ft with .whole gives “5 ft”, while the precision .inchesWhole gives 5’-3".

    Declaration

    Objective-C

    PSPDFMeasurementPrecisionInchesWhole

    Swift

    case inchesWhole = 5
  • Round to halves. For example: 2 ½.

    Declaration

    Objective-C

    PSPDFMeasurementPrecisionInchesHalves

    Swift

    case inchesHalves = 6
  • Round to quarters. For example: 2 ¾. Fractions will be simplified if possible.

    Declaration

    Objective-C

    PSPDFMeasurementPrecisionInchesQuarters

    Swift

    case inchesQuarters = 7
  • Round to eighths. For example: 2 5/8. Fractions will be simplified if possible.

    Declaration

    Objective-C

    PSPDFMeasurementPrecisionInchesEighths

    Swift

    case inchesEighths = 8
  • Round to sixteenths. For example: 2 9/16. Fractions will be simplified if possible.

    Declaration

    Objective-C

    PSPDFMeasurementPrecisionInchesSixteenths

    Swift

    case inchesSixteenths = 9