Search:

Type: Posts; User: johngoodman

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    1,201

    But how do you traverse the list of bits and find...

    But how do you traverse the list of bits and find the value it represents? Bit shifting?
  2. Replies
    9
    Views
    1,201

    So for the makeFloat function I'd like to call it...

    So for the makeFloat function I'd like to call it like so: float result = makeFloat("-101.1101"); .... so I pass it that value which is binary, but I need to convert it to an actually float and...
  3. Replies
    9
    Views
    1,201

    Never mind, i fixed it by doing a simple bit...

    Never mind, i fixed it by doing a simple bit shift, haha. But I'm still working on makefloat
  4. Replies
    9
    Views
    1,201

    This is what I'm running now, but it outputs 1...

    This is what I'm running now, but it outputs 1 01111111 11111111111111111111111 which is obviously not -5.8125



    typedef union fi {
    unsigned int i;
    float f;
    }fi;
  5. Replies
    9
    Views
    1,201

    floating points

    I'm trying to write two functions.
    One called: void displayFloat(float f);
    And the other: float makeFloat(char* f);

    I want displayFloat to simply take in a float and display the 32 bits that...
Results 1 to 5 of 5