Search:

Type: Posts; User: lava

Search: Search took 0.01 seconds.

  1. I'm using an Atmel ATmega32 with CodeVisionAVR. I...

    I'm using an Atmel ATmega32 with CodeVisionAVR. I checked the settings, and what do you know, yes, the default setting does NOT allow printf to output floats. So, I turned it on, and... "Evaluation...
  2. Weird. I just copied your code into my compiler...

    Weird. I just copied your code into my compiler and onto the microcontroller, and all I got was "output =", no number after. I have no idea what is wrong.
  3. Okay, I tried this code: char number[4];...

    Okay, I tried this code:




    char number[4];
    float output;

    while(1)
    {
  4. Thanks swoopy, I was not including string.h. I...

    Thanks swoopy, I was not including string.h. I included it, and then tried this code:



    char number[4];
    float float_number;

    while(1)
    {
    number[0]=0x3F;
  5. I can't get either of these solutions to work. I...

    I can't get either of these solutions to work. I tried this code:



    char number[4];
    sizeof(float)==4;

    while (1)
    {
    number[0]=0x3F;
  6. Thanks, will give it a try!

    Thanks, will give it a try!
  7. Combining four hex characters into one floating point number for output?

    If I have an array, number[4], of these values:

    number[0]=0x3F
    number[1]=0xC7
    number[2]=0xAE
    number[3]=0x14

    I want to use a printf(%f) statement to combine this array into a single number...
Results 1 to 7 of 7