Floats

Let's take a look at another numerical data type in Reason.

We'll cover the following

Definition

The float data type contains positive and negative decimal numbers.

Floats behave very similar to integers, but their storage in memory is different. Although a float also occupies 4 bytes, the bytes represent a decimal rather than a whole number.

Get hands-on with 1400+ tech skills courses.