This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how do i represent 0.1 in keil uvision4

i am writing a code to convert c->f and i need to show the value after decimal.

Parents Reply Children
  • So what's the problem? Presumably you have some prior coursework underpinning the assignment.

    Which architecture are we talking about? Assembler is sufficiently different that this is an important detail to provide when asking a question.

    You could represent 123.45 F as 12345

    int f = 12345;
    printf("%3d.%02d\n", f / 100, f % 100);