--- title: "convert Double2Int()" slug: "math-convert-double-2-int" updated: 2026-08-13T13:09:47Z published: 2026-08-13T13:09:47Z canonical: "docs.lobstersoftware.com/math-convert-double-2-int" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # convert Double2Int() This function converts a floating-point number (double) **a** into an integer. Parameter **b** specifies how many decimal places are to be used for this (see examples below). ## Parameters | Parameter | Description | | --- | --- | | a | Value | | b | (optional) Number of decimal places to be used. Default: *0* | ## Examples | Parameter a | Parameter b | Result | | --- | --- | --- | | 1.75 | | 1 | | 1.75 | 1 | 17 | | 1.75 | 2 | 175 | | 1.75 | 3 | 1750 |