Skip to Content
Beginning Rust: Get Started with Rust 2021 Edition
book

Beginning Rust: Get Started with Rust 2021 Edition

by Carlo Milanesi
January 2022
Beginner content levelBeginner
424 pages
8h 8m
English
Apress
Content preview from Beginning Rust: Get Started with Rust 2021 Edition
© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
C. MilanesiBeginning Rusthttps://doi.org/10.1007/978-1-4842-7208-4_6

6. Using Primitive Types

Carlo Milanesi1  
(1)
Bergamo, Italy
 
In this chapter, you will learn:
  • How to write numeric literals in hexadecimal, octal, or binary notation

  • How to use the underscore character to make numeric literals easier to read

  • How to use the exponential notation to write huge or tiny numbers in a compact form

  • Which are the twelve primitive integer numeric types, and the two primitive floating-point numeric types; what are their ranges; and when it is better to use each of them

  • How to specify numeric literals of concrete types or of unconstrained types

  • How to convert a numeric value ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Rust for Absolute Beginners: Learn Rust in 4 Hours

Rust for Absolute Beginners: Learn Rust in 4 Hours

Ajay R. Warrier
Programming with Rust

Programming with Rust

Donis Marshall

Publisher Resources

ISBN: 9781484272084Purchase LinkPublisher Website