I&C SCI 31 Chapter Notes - Chapter 2: Web Application, George Boole, Decimal Representation

92 views14 pages

Document Summary

Addition and multiplication of integers results in integers. Integer is divided by integer and the result in a decimal. Floating point/float - values with decimal points and fractional parts. Standard algebra precedence rules apply in python: * and / take precedence over + or - When two int values are +,- or * result is always int. If a float appears anywhere in the expression, result is float. Two ints divided also results in a float. Abs(x) - compute the absolute value of a number value. Min(x,y) - returns min from x or y (any number of inputs) Max(x,y) - returns max from x or y (any number of inputs) Boolean expressions evaluate to one of two boolean values: t or f. Algebraic expressions on either side of comparison operators are evaluated before the comparison is made. Algebraic operators take precedence over comparison operators. == : to check equality between values.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents

Related Questions