Int32.From

Syntax

Int32.From(value as any, optional culture as nullable text, optional roundingMode as nullable number) as nullable number

Description

Returns a 32-bit integer number value from the given value. If the given value is null, Int32.From returns null. If the given value is number within the range of 32-bit integer without a fractional part, value is returned. If it has fractional part, then the number is rounded with the rounding mode specified. The default rounding mode is RoundingMode.ToEven. If the given value is of any other type, see Number.FromText for converting it to number value, then the previous statement about converting number value to 32-bit integer number value applies. See Number.Round for the available rounding modes. An optional culture may also be provided (for example, “en-US”).

Reference Data

https://docs.microsoft.com/en-us/powerquery-m/power-query-m-function-reference

Power Query M Functions / Number Functions / Int32.From