Help for this page

Select Code to Download


  1. or download this
    float foo = (float)nv;
    
  2. or download this
    double nv = (float)(2.0 / 3);
    
  3. or download this
    static __inline int
    compare_truncated_double_to_float(double d, float f)
    ...
        if (f == truncated_double) { return 1; }
        else                       { return 0; }
    }