English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
0

For binary code what does the decimal do? Say you have 101.101

2007-11-19 11:49:37 · 2 answers · asked by pukeatronic 1 in Computers & Internet Programming & Design

2 answers

There's no decimal in binary. Floating point (decimal) numbers are represented to the computer using binary, yes, but it's formatted into manitissa, sign, and all that, etc....

For example a standard float (many compilers, machines) is 4 bytes. Each byte you know, is eight *its representing varied portions of the floating point value, such as values to the left of the decimal, values to the right of the decimal, the sign value, blah, blah

Theose bits are binary values, and can be represented as 1's and 0's, but not in the context of 101.101

2007-11-19 13:05:20 · answer #1 · answered by gene_frequency 7 · 0 0

Your telling the computer that you have a fraction of a whole number.

2007-11-19 11:58:33 · answer #2 · answered by Belgariad 6 · 0 0

fedest.com, questions and answers