Skip to main content

Basic Types

The video for “Basic Types” is in the works!

Mux has four fundamental data types: integers, floating-point numbers, booleans, and strings.

Integers (int)

Whole numbers without decimal points:

Try it yourself
Loading...

Floating-Point (float)

Numbers with decimal points:

Try it yourself
Loading...

Booleans (bool)

True or false values:

Try it yourself
Loading...

Strings

Text data:

Try it yourself
Loading...

Type Conversions

Convert between types using .to_string():

Try it yourself
Loading...

Previous: Variables | Next: Functions