Notes - 1.22 - Read Chapter 3, 7, 22 Know Chapter 2 for...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
, Read Chapter 3 7 22 Know Chapter 2 for Quiz on Friday . Notes 1 22 Floats Float single precision Double double precision Long double extreme precision Must contain decimal point or exponent - By default stored as double precision numbers , F or f L or l can be used to force storage format ( ) Float can hold 32 bits o 6 digits in exponent o 1 bit for sign ( ) Double can hold 64 bits o 15 digits in exponent o 1 bit for sign C math Library < . > math h Formatted Input and Output - Printf and Scanf - Come with a string - Dictate the way to input the information - < . > Requires stdio h - Gets definitions of the functions - Scanf reads from keyboard - Printf prints to screen - : (“ Ex printf % % double d is d\n * ); x 2 x - Format string , - % - d Conversion specification - \n - exception character - Escape sequences o Consist of a \ followed by an other character
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
, Read Chapter 3 7 22 Know Chapter 2 for Quiz on Friday o \b backslash o - \\ backslash
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

Notes - 1.22 - Read Chapter 3, 7, 22 Know Chapter 2 for...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online