Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Otro

Floating Point Binary

Puntuación
-
Vendido
-
Páginas
7
Subido en
20-04-2023
Escrito en
2022/2023

This document contains notes on binary floating point numbers, including basic arithmetic, conversion to and from base-10, error calculations, signed floating point numbers, and more.

Institución
Grado

Vista previa del contenido

Binary Arithmetic
#computer-science #binary #bases #arithmetic


Addition
There are only five necessary operations in binary:

02 + 02 = 02

02 + 12 = 12

12 + 02 = 12

12 + 12 = 102

12 + 12 + 12 = 112




Carry Bits

In the last two cases above, the left-hand bit is a carry bit. There are
three options for dealing with these:

1. Carry it into the next calculation
2. Ignore it
3. Throw an exception

, Fixed Point Binary
Run Code Block
Run Code Block
#computer-science #binary #bases #arithmetic

See also: Floating Point Binary

In denary, place values right of the decimal point have negative index
values . This is the same in binary

Index: 2 1 0 -1 -2 -3
3 4 1 . 1 0 2

This is base 10 ^^^



Index: 2 1 0 -1 -2 -3 -4 -5
0 1 0 . 1 0 1 1 0
Place 4 1 1/2 1/8 1/32
Value: 2 1/4 1/16

Result: = 2.6875 (base 10)


This representation works for both signed and unsigned integers.


An Issue

Some decimals, such as 0.1, cannot be represented exactly in binary.

0.12 ≡ 0.000110011001100110011. . .2




Fixed Point Representation
When encoding fractional numbers in binary, there are two main constraints:

1. There are a set number of bits available for encoding the data
2. There is no special character for where the binary point goes

Escuela, estudio y materia

Nivel de Estudio
Editores
Tema
Curso

Información del documento

Subido en
20 de abril de 2023
Número de páginas
7
Escrito en
2022/2023
Tipo
OTRO
Personaje
Desconocido

Temas

$9.53
Accede al documento completo:

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Conoce al vendedor
Seller avatar
pencilcaseman

Documento también disponible en un lote

Conoce al vendedor

Seller avatar
pencilcaseman Hampton School
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
-
Miembro desde
2 año
Número de seguidores
0
Documentos
5
Última venta
-

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Documentos populares

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes