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 points to inches in a spreadsheet.

// How to convert points to inches in a spreadsheet?

// Convert points to inches using the spreadsheet API.

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);