Skip to content

Instantly share code, notes, and snippets.

@freespace
Created June 4, 2014 19:48

Revisions

  1. freespace created this gist Jun 4, 2014.
    10 changes: 10 additions & 0 deletions float_scaling.c
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #include <stdio.h>

    int main(void) {
    float f = 16777210;
    int cnt;
    for (cnt =0; cnt < 15; ++cnt) {
    printf("cnt=%d\tf=%f\n", cnt, f+cnt);
    }
    return 0;
    }