Jump to content

How to convert decimal to binary

Ziggster

Hello!

 

can sombody convert and explain how to convert 1.5 to binary

 

Thanks :D

Link to comment
Share on other sites

Link to post
Share on other sites

google "Decimal to binary converter"

 

EDIT-  saw "How"

 

Ummm....... I have no idea, I learned this last year, but I don't play attention.

Star Citizen referral codes, to help support your fellow comrades!
UOLTT Discord server, come on over and chat!

i7 4790k/ Bequiet Pure Rock/Asrock h97 PRO4/ 8 GB Crucial TT/ Corsair RM 750/ H-440 Custom/  PNY GT 610

Damn you're like a modular human being. -ThatCoolBlueKidd

 
Link to comment
Share on other sites

Link to post
Share on other sites

http://www.helpwithpcs.com/hardware/binary-numbers.php

 

Binary doesn't have representation for decimal points or fractions. Nevermind there is a way.

http://cs.furman.edu/digitaldomain/more/ch6/dec_frac_to_bin.htm

Guide: DSLR or Video camera?, Guide: Film/Photo makers' useful resources, Guide: Lenses, a quick primer

Nikon D4, Nikon D800E, Fuji X-E2, Canon G16, Gopro Hero 3+, iPhone 5s. Hasselblad 500C/M, Sony PXW-FS7

ICT Consultant, Photographer, Video producer, Scuba diver and underwater explorer, Nature & humanitarian documentary producer

Link to comment
Share on other sites

Link to post
Share on other sites

CPU: AMD FX 6300 4.6 GHZ 1.392vCore ||||| Cooler: Hyper 212 evo ||||| MOBO: Gigabyte 990XA UD3 REV 3.0 ||||| RAM: Kingston Hyperx Fury (Single channel) 1866 8GB CL10 ||||| GPU: Sapphire HD 7770 1GB ||||| PSU: CoolerMaster G550m 80+ Bronze ||||| SSD: Kingston SSDnow v300 ||||| HDDs: 2x 250gb 1x Wedstern Digital 320gb |||| Case: CoolerMaster Silencio 650 Black Pure Midnight

Link to comment
Share on other sites

Link to post
Share on other sites

 

That doesn't work for values that have numbers behind the decimal point.

 

But binary is mainly used to represent Whole Numbers, it's complicated on fractions.

Guide: DSLR or Video camera?, Guide: Film/Photo makers' useful resources, Guide: Lenses, a quick primer

Nikon D4, Nikon D800E, Fuji X-E2, Canon G16, Gopro Hero 3+, iPhone 5s. Hasselblad 500C/M, Sony PXW-FS7

ICT Consultant, Photographer, Video producer, Scuba diver and underwater explorer, Nature & humanitarian documentary producer

Link to comment
Share on other sites

Link to post
Share on other sites

I had no idea you could express floating point numbers in binary O.o

Huh.

The biggest  BURNOUT  fanboy on this forum.

 

And probably the world.

Link to comment
Share on other sites

Link to post
Share on other sites

Hello!

 

can sombody convert and explain how to convert 1.5 to binary

 

Thanks :D

It is 1.1 = 1 * 2^0 + 1 * 2^(-1)

 

But I'm not in the mood to write a full guide sorry ;)

 

EDIT: This is fixed point arithmetic. Floating point like used in float and double in C for example is quite complicated.

Mineral oil and 40 kg aluminium heat sinks are a perfect combination: 73 cores and a Titan X, Twenty Thousand Leagues Under the Oil

Link to comment
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...

I'll elaborate a bit:

 

64 32 16 8 4 2 1 

.5 .25 .125 .0625

 

Your number is 1.5.

 

There are no 64s, 32s, 16s, 8s, 4s or 2s in that number, but there is one 1.  

 

So this is what you have so far "1."

 

To get the fractional piece you multiply them by two until you get to zero and take the whole numbers as the fractional representation.

 

SO:

 

.5 * 2= 1.0

 

take that one and use it in your answer: 1.1

 

.0 * 2 = 0

 

You're done.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×