---
title: "Primitive & Numeric Types"
description: "The boolean, numeric, and unit types of the Slint language."
---
import SlintProperty from '@slint/common-files/src/components/SlintProperty.astro';
import Link from '@slint/common-files/src/components/Link.astro';

## Primitive Types

### bool
<SlintProperty propName="bool" typeName="bool" defaultValue='false'>
boolean whose value can be either `true` or `false`.
</SlintProperty>

The default `bool` is `false`. [sls.type.bool]

## Numeric Types
















### int
<SlintProperty propName="int" typeName="int" defaultValue='0'>
Signed integral number.
</SlintProperty>

The default `int` is zero. [sls.type.int]

### length
<SlintProperty propName="length" typeName="length" defaultValue='0px'>
</SlintProperty>

A `length` is a distance.
The default `length` is zero. [sls.type.length]

