Skip to main content

PointsToInches

Converts points to inches.

Syntax

expression.PointsToInches(pt);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
ptRequirednumberThe number of points to convert to inches.

Returns

number

Example

Convert a measurement from points to inches in a spreadsheet.

// How do I express a point value as inches in a spreadsheet?

// Get the inch equivalent of a given number of points in a spreadsheet.

const points = 1000;
const inches = Api.PointsToInches(points);
const text = points + ' points are equal to ' + inches + ' inches.';

let worksheet = Api.GetActiveSheet();
worksheet.GetRange('B2').SetValue(text);