Introduction to Computer Science PDF Fall 2024

Document Details

FervidDune

Uploaded by FervidDune

ETH Zurich

2024

null

Manuela Fischer and Felix Friedrich

Tags

computer science floating point numbers programming introduction

Summary

This document is a set of lecture notes from ETH Zurich on Introduction to computer science, focusing on floating point numbers. The notes include examples and explanations of concepts related to floating point numbers in computer science.

Full Transcript

INTRODUCTION TO COMPUTER SCIENCE 252-0032, 252-0047, 252-0058 Document authors: Manuela Fischer and Felix Friedrich Department of Computer Science, ETH Zurich Fall 2024 1 Floating Point Numbers...

INTRODUCTION TO COMPUTER SCIENCE 252-0032, 252-0047, 252-0058 Document authors: Manuela Fischer and Felix Friedrich Department of Computer Science, ETH Zurich Fall 2024 1 Floating Point Numbers 74 Section 6 Floating Point Numbers In this section, we take a closer look at the types float and double, and their representations as floating point numbers on a computer. The following program reads a temperature in degrees Celsius and outputs the temperature in degrees Fahrenheit. // input std::cout > celsius; // computation and output std::cout

Use Quizgecko on...
Browser
Browser