Skip to main content

Number

Integer

Used to describe negative or positive integers.

knot
const positiveInteger = 3123;
const negativeInteger = -134;
knot
const positiveInteger = 3123;
const negativeInteger = -134;

Float

Used to describe negative or positive floating-point numbers.

knot
const positiveFloat = 31.23;
const negativeFloat = -1.34;
knot
const positiveFloat = 31.23;
const negativeFloat = -1.34;