I have two questions:
FIRST: I am trying to learn more about using the pow() function, but I can't seem to view the man page in Ubuntu. I am using the command:
> man 3 pow
This seems to work on Fedora, but I can't seem to pull up the man page in Ubuntu. GCC works great for me, but is there some other library that I need to download in order to view the man pages? I have installed gcc-doc in addition to gcc. The error I get after typing in the command listed above is:
No manual entry for pow in section 3
How can I access the man page for pow()?
SECOND: dwhitney67, you said to always define your pow() function as a double. What if I am simply trying to print out a power of two numbers. For example:
Code:
printf("%lf\n", pow(2,7)); // I used %lf for the double value
I realize that I could declare a double variable and set it equal to the value of pow(2, 7), and then print the double variable, but what if I wanted to directly use the pow() function within my printf statement?
Thanks!
Bookmarks