> 2.Is it possible to interpret the number 14.2567 in to binary format

This is from memory from when I was in school:

This is usually done by dealing with the integer and fractional parts

separately. The integer is converted to binary using division.

Divide by 2 and the remainder is the binary digit for that place.

Repeat using the result of division and move up 1 binary digit till

you have 0 left.

11 / 2 = 5 R 1

5 / 2 = 2 R 1

2 / 2 = 1 R 0

1 / 2 = 0 R 1

11 (decimal) = 1011 (binary)

Using the same sort of logic, the fractional part of a decimal number

can be convert to binary by multipying. The integer part is the

binary digit and gets tossed. Repeat till 0 or desired precision.

0.65 * 2 = 1 + 0.3

0.3 * 2 = 0 + 0.6

0.6 * 2 = 1 + 0.2

0.2 * 2 = 0 + 0.4

0.4 * 2 = 0 + 0.8

0.8 * 2 = 1 + 0.6 (and it will now repeat)

0.65 (decimal) = 101001....(binary)

So,

11.65 (decimal) = 1011.101001.... (binary)

I hope this helps,

lBill

This is from memory from when I was in school:

This is usually done by dealing with the integer and fractional parts

separately. The integer is converted to binary using division.

Divide by 2 and the remainder is the binary digit for that place.

Repeat using the result of division and move up 1 binary digit till

you have 0 left.

11 / 2 = 5 R 1

5 / 2 = 2 R 1

2 / 2 = 1 R 0

1 / 2 = 0 R 1

11 (decimal) = 1011 (binary)

Using the same sort of logic, the fractional part of a decimal number

can be convert to binary by multipying. The integer part is the

binary digit and gets tossed. Repeat till 0 or desired precision.

0.65 * 2 = 1 + 0.3

0.3 * 2 = 0 + 0.6

0.6 * 2 = 1 + 0.2

0.2 * 2 = 0 + 0.4

0.4 * 2 = 0 + 0.8

0.8 * 2 = 1 + 0.6 (and it will now repeat)

0.65 (decimal) = 101001....(binary)

So,

11.65 (decimal) = 1011.101001.... (binary)

I hope this helps,

lBill

When sending correspondence to the VEE Reflector, please remember

to include the prefix "VRF-" with the title of your message.

This allows VRF users who get large quantities of email to sort and

prioritize their email.

Thanks for your time and consideration.

[%%] regards -- gvg

---------------------------------------------------

CENGIZ EKEN wrote:

> Hello all,

>

> My questions are as follows:

> 1.Is it possible to truncate the real number 1.2368 to real 1.23 without

> rounding to real 1.24

> 2.Is it possible to interpret the number 14.2567 in to binary format

>

> Any help would be useful, thanks.

>

> Cengiz Eken.

>

> ------------------------------------------------------------------------

>

> CENGIZ EKEN <ceken@venus.aselsan.com.tr>

> TEST ENGINEER

> ASELSAN INC.

>

> CENGIZ EKEN

> TEST ENGINEER <ceken@venus.aselsan.com.tr>

> ASELSAN INC.

> P.K. 101 YENIMAHALLE Work: +90 312 385 19 00 /ext:2276

> ANKARA Fax: +90 312 354 13 02

> 06172 Netscape Conference Address

> TURKEY Netscape Conference DLS Server

> URL:http://www.aselsan.com.tr

> Additional Information:

> Last Name EKEN

> First Name CENGIZ

> Version 2.1