User Profile

Collapse

Profile Sidebar

Collapse
ayaniv
ayaniv
Last Activity: Nov 17 '06, 03:20 PM
Joined: Nov 15 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ayaniv
    started a topic convert ASCII to Binary /C
    in C

    convert ASCII to Binary /C

    can anyone tell me how can i convert
    the ascii code: 48 to the binary number: 00110000
    ??

    if anyone knows if there any other way to save the char of an ascii code 48 in a variable it would be great.

    example:
    i want to save the char of 48 as 0
    and 49 as 1, 50 as 2... and so...
    See more | Go to post

  • ayaniv
    replied to convert float to binary
    in C
    i guess it's the last one:
    10100100 01110000 01000101 01000001

    if you please can tell me how you get to binary notation from 12.34
    so i can write the correct algorithm to do it.

    thanx
    See more | Go to post

    Leave a comment:


  • ayaniv
    replied to convert float to binary
    in C
    i will give you an example in converting an integer to binary:
    the number 245 = 11110101 in binary notation.
    i got the answer by algorithm that translate 245 to binary.

    i want to write an algorithm for float numbers.
    as i will put 12.34 and get its binary notation.

    that's it.
    See more | Go to post

    Leave a comment:


  • ayaniv
    started a topic convert float to binary
    in C

    convert float to binary

    how to convert * WITHOUT USING ANY FUNCTION * a float number to binary?
    at least if someone can explain me how to do it it would be better then giving me the code itself.
    See more | Go to post
No activity results to display
Show More
Working...