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

<SC>
## 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

</SC>














<SC>

### 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}

</SC>