PointsToInches
Converts points to inches.
Syntax
expression.PointsToInches(pt);
expression - A variable that represents a Api class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| pt | Required | number | The number of points to convert to inches. |
Returns
number
Example
This example shows how to convert points to inches.
- Code
- Result
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);