Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: Floating Point

$
0
0
Default precision for %f is 6 digits (ISO C99)
what's your test case ?



On Tue, Feb 26, 2013 at 10:32 AM, Aparna Bhat <aps2891@gmail.com> wrote:

> Hi,
>
> I am working on a module for load balancing. I have to make use of the
> type float. Can anyone please tell me if there is any nginx specific data
> type for float such as the one that exists for int (ngx_int_t). I would
> also like to know how to write the float value to the logs. The type %f
> prints only the integer portion of the float value.
>
> Thank you in advance.
>
> With Regards,
> Aparna.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



--
Saiz Benjamin
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>