Skip to content

System.Inf

Dennis G. edited this page Aug 10, 2025 · 2 revisions

Declaration

const Inf = \built-in\

Description

The Inf constant in the System package represents the positive infinity value of a numeric expression. In order to get the value of negative infinity, simply negate it using the - (minus) operator: -Inf.

Remarks

Inf or -Inf allows for further calculations, but its value will never change. If you need the highest possible non-infinity number to work with, please use MaxValue or MinValue instead.

See also

Clone this wiki locally