[openbeos] Re: POSIX headers

  • From: "Adi Oanca" <e2joseph@xxxxxxxxxx>
  • To: <openbeos@xxxxxxxxxxxxx>
  • Date: Wed, 17 Sep 2003 21:21:50 +0300

From: "Matthijs Hollemans"> > Why do we use our POSIX headers, if they are
not completely
> > functional?
> > for example I want to use 'lroundf()' function found in math.h.
>
> According to a quick Google search I just did, lroundf() was added to the
> C99 standard. I don't think our version of gcc supports that standard, or
> does it?
>
> Then again, R5 only supports a fraction of POSIX anyway.

    OK, be it like so.

    Please tell me: how can I have a float's rounded value in an int32...
        float    y = 3.14f;
        int32   z = (int32)y;
            ... without a compiler warning?



Other related posts: