Skip to main content

Module number

Module number 

Source
Expand description

Specified numbers and integers.

Structs§

Integer
A specified <integer>, either a simple integer value, a resolved calc expression, or a full calc expression tree that cannot be computed at parse time. Note that a calc expression may not actually be an integer; it will be rounded at computed-value time.
NoCalcNumber
A non-calc <number> value.
Number
A CSS <number> specified value.

Functions§

parse_integer_with_clamping_mode
Parse an <integer> value, with a given clamping mode.
parse_number_with_clamping_mode
Parse a <number> value, with a given clamping mode.

Type Aliases§

GreaterThanOrEqualToOneNumber
A Number which is >= 1.0.
NonNegativeInteger
An Integer which is >= 0. For calc expressions that couldn’t be resolved at parse time, this value is clamped to 0 at computed-value time.
NonNegativeNumber
A Number which is >= 0.0.
PositiveInteger
An Integer which is >= 1. For calc expressions that couldn’t be resolved at parse time, this value is clamped to 1 at computed-value time.