Re: Reg: gcc option for printing large number (large double)

2013-10-08 Thread Roger Leigh
On Mon, Sep 09, 2013 at 10:11:21AM +0530, Balamurugan wrote: I have an issue in printing a large number in a c program. Please find below the code snippet : #include math.h int main() { double temp = 0.0; temp = pow(2, 2000); printf(The value of temp is

Re: Reg: gcc option for printing large number (large double)

2013-09-09 Thread Joel Rees
On Mon, Sep 9, 2013 at 2:40 PM, Joel Rees joel.r...@gmail.com wrote: On Mon, Sep 9, 2013 at 1:41 PM, Balamurugan emailstorb...@gmail.com wrote: Hi, I have an issue in printing a large number in a c program. Please find below the code snippet : #include math.h int main() { double

Re: Reg: gcc option for printing large number (large double)

2013-09-09 Thread Dom
On 09/09/13 07:21, Joel Rees wrote: snip code and stuff Not sure why neither man -k nor whereis can find float.h, but it compiles okay. dom@oz:~$ locate float.h /usr/lib/gcc/i486-linux-gnu/4.6/include/float.h /usr/lib/gcc/i486-linux-gnu/4.7/include/float.h

Re: Reg: gcc option for printing large number (large double)

2013-09-09 Thread Chris Bannister
On Mon, Sep 09, 2013 at 08:21:43AM +0100, Dom wrote: It does have a manpage: http://manpages.debian.net/cgi-bin/man.cgi?query=float.h root@tal:~# apt-cache show manpages-dev but perhaps you don't have it installed. I certainly don't. root@tal:~# apt-cache policy manpages-dev -- If you're

Re: Reg: gcc option for printing large number (large double)

2013-09-09 Thread Curt
On 2013-09-09, Joel Rees joel.r...@gmail.com wrote: It does have a manpage: http://manpages.debian.net/cgi-bin/man.cgi?query=float.h It's funny, I was sure I had gotten that particular man page before. root@tal:~# apt-cache show manpages-dev You don't need to be root, by the way, to

Re: Reg: gcc option for printing large number (large double)

2013-09-09 Thread Joel Rees
On Mon, Sep 9, 2013 at 4:21 PM, Dom to...@rpdom.net wrote: On 09/09/13 07:21, Joel Rees wrote: snip code and stuff Not sure why neither man -k nor whereis can find float.h, but it compiles okay. dom@oz:~$ locate float.h /usr/lib/gcc/i486-linux-gnu/4.6/include/float.h

Re: Reg: gcc option for printing large number (large double)

2013-09-09 Thread Joel Rees
On Mon, Sep 9, 2013 at 9:00 PM, Chris Bannister cbannis...@slingshot.co.nz wrote: On Mon, Sep 09, 2013 at 08:21:43AM +0100, Dom wrote: It does have a manpage: http://manpages.debian.net/cgi-bin/man.cgi?query=float.h It's funny, I was sure I had gotten that particular man page before.

Re: Reg: gcc option for printing large number (large double)

2013-09-09 Thread Joel Rees
DEC_EVAL_METHOD Can't seem to turn this loose. On Tue, Sep 10, 2013 at 1:51 AM, Joel Rees joel.r...@gmail.com wrote: On Mon, Sep 9, 2013 at 4:21 PM, Dom to...@rpdom.net wrote: On 09/09/13 07:21, Joel Rees wrote: snip code and stuff Not sure why neither man -k nor whereis can find float.h,

Reg: gcc option for printing large number (large double)

2013-09-08 Thread Balamurugan
Hi, I have an issue in printing a large number in a c program. Please find below the code snippet : #include math.h int main() { double temp = 0.0; temp = pow(2, 2000); printf(The value of temp is %lf\n, temp); return 0; } I compiled and ran as below:

Re: Reg: gcc option for printing large number (large double)

2013-09-08 Thread Joel Rees
On Mon, Sep 9, 2013 at 1:41 PM, Balamurugan emailstorb...@gmail.com wrote: Hi, I have an issue in printing a large number in a c program. Please find below the code snippet : #include math.h int main() { double temp = 0.0; temp is a double. In your ordinary environment, doubles