Skip to content

[F] getMaxValue

function getMaxValue(program, target): number | undefined;

Read the numeric @maxValue constraint as a JavaScript number. Returns undefined when no numeric constraint is stored or a finite conversion loses precision; throws on numeric overflow. Use getMaxValueAsNumeric to avoid number conversion.

ParameterType
programProgram
targetType

number | undefined