2 Julia as a calculator

This chapter covers

  • Working with integers, floating-point numbers, and fractions
  • Using variables to store long numbers
  • Creating reusable calculations by defining functions
  • The most basic types in Julia

Even if you never end up using Julia as your primary language, you may still value it as a replacement for your desk calculator. Julia can even double as an advanced high-school graphing calculator (figure 2.1). As a bonus, it’s completely free to use.

02-01

Figure 2.1 Retro scientific calculator. Can we replace the usage of a handheld calculator with a Julia REPL?

Remember you have to walk before you can run, and exploring numbers ...

Get Julia as a Second Language 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.