This document discusses numbers and arithmetic in Ruby. It introduces integers and floats, arithmetic functions like addition and multiplication, operations precedence, and the differences between integers and floats. Integers do not contain decimal points while floats do. It also demonstrates various arithmetic expressions and operations in Ruby and references sources for further information.
This document discusses numbers and arithmetic in Ruby. It introduces integers and floats, arithmetic functions like addition and multiplication, operations precedence, and the differences between integers and floats. Integers do not contain decimal points while floats do. It also demonstrates various arithmetic expressions and operations in Ruby and references sources for further information.
This document discusses numbers and arithmetic in Ruby. It introduces integers and floats, arithmetic functions like addition and multiplication, operations precedence, and the differences between integers and floats. Integers do not contain decimal points while floats do. It also demonstrates various arithmetic expressions and operations in Ruby and references sources for further information.
1. Number introduction ❖ In Ruby, numbers without decimal points are called integers. ❖ Numbers with decimal points are usually called floating-point numbers.