Skip to Main Content
Getting Started with Processing
book

Getting Started with Processing

by Casey Reas, Ben Fry
June 2010
Beginner content levelBeginner
210 pages
3h 45m
English
Make: Community
Content preview from Getting Started with Processing

Appendix B. Data Types

There are different categories of data. For instance, think about the data on an ID card. The card has numbers to store weight, height, date of birth, street address, and postal code. It has words to store a person’s name and city. There’s also image data (a photo) and often an organ donor choice, which is a yes/no decision. In Processing, we have different data types to store each kind of data. Each of the following types is explained in more detail elsewhere in the book, but this is a summary.

Name

Description

Range of values

int

Integers (whole numbers)

−2,147,483,648 to 2,147,483,647

float

Floating-point values

−3.40282347E+38 to 3.40282347E+38

boolean

Logical value

true or false

char

Single character

A–z, 0–9, and symbols ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Processing

Learning Processing

Daniel Shiffman
Getting Started with Processing.py

Getting Started with Processing.py

Allison Parrish, Ben Fry, Casey Reas

Publisher Resources

ISBN: 9781449379827Supplemental ContentErrata