Number
Integer
Used to describe negative or positive integers.
- Knot
- TypeScript
knot
const positiveInteger = 3123;const negativeInteger = -134;
knot
const positiveInteger = 3123;const negativeInteger = -134;
tsx
const positiveInteger = 3123;const negativeInteger = -134;
tsx
const positiveInteger = 3123;const negativeInteger = -134;
Float
Used to describe negative or positive floating-point numbers.
- Knot
- TypeScript
knot
const positiveFloat = 31.23;const negativeFloat = -1.34;
knot
const positiveFloat = 31.23;const negativeFloat = -1.34;
tsx
const positiveFloat = 31.23;const negativeFloat = -1.34;
tsx
const positiveFloat = 31.23;const negativeFloat = -1.34;