InchesToPoints
Converts inches to points.
Syntax
expression.InchesToPoints(inches);
expression - A variable that represents a Api class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| inches | Required | number | The number of inches to convert to points. |
Returns
number
Example
Convert inches to points in a spreadsheet.
// How do I convert inches to points in a spreadsheet?
// Convert inches to points and display the result in a spreadsheet.
const inches = 100;
const points = Api.InchesToPoints(inches);
const text = inches + ' inches are equal to ' + points + ' points.';
let worksheet = Api.GetActiveSheet();
worksheet.GetRange('B2').SetValue(text);