Numeric Types
Numeric types
Type | Usage | Examples |
---|---|---|
int | Typically used for counting | 1, 2, 6, 10, ... |
float | Used for accurate measurements | 30.5, 38.9, 10.0006, 60.0 |
complex | Complex numbers have their uses in many applications related to mathematics | x+iy |
To check the type of a specific variable, use the function type(variable).
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 2
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Awesome!
Completion rate improved to 2.7
Numeric Types
Swipe um das Menü anzuzeigen
Numeric types
Type | Usage | Examples |
---|---|---|
int | Typically used for counting | 1, 2, 6, 10, ... |
float | Used for accurate measurements | 30.5, 38.9, 10.0006, 60.0 |
complex | Complex numbers have their uses in many applications related to mathematics | x+iy |
To check the type of a specific variable, use the function type(variable).
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 2