© Sandeep Nagar 2017

Sandeep Nagar, Beginning Julia Programming, https://doi.org/10.1007/978-1-4842-3171-5_5

5. Rational and Irrational Numbers

Sandeep Nagar

(1)New York, USA

5.1 Numbers and Ratios

A rational number is a number that can be written as a ratio of two numbers. This ratio is also called a fraction representation. A fraction representation includes two parts: the numerator (the number on top) and the denominator (the number on the bottom). The following is a fraction representation of a rational number:$$ \frac{a}{b} $$where a, b ∈ I and b ≠ 0.

For example, 0.50 can also be written as . Similarly 0.60 can be written as , which can then be reduced to ...

Get Beginning Julia Programming: For Engineers and Scientists now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.