floatpower error
Well I got this code and I'd like to understand why the outcome is not what is expected.
PHP Code:
Basicly I'm having a little of hard time working with exponent using floatpower, and I'd like some assisting fixing this, and maybe in the process I actually understand it correctly. |
Re: floatpower error
%d -> %f
|
Re: floatpower error
What is the difference?
|
Re: floatpower error
%d is for integers, like %i. %f is for floats.
|
Re: floatpower error
%d is for cell (integer) and %f is for float. Cells' certain integer values correspond to certain float values.
|
Re: floatpower error
The test start to work properly but I'm sure I made some mistake on this:
PHP Code:
|
Re: floatpower error
If div1 and QA are tagged as floats, it's fine. If you want to print just the first digit after the . you would do 1.%f and so on.
|
Re: floatpower error
Fixed, thx a lot mate :)
|
Re: floatpower error
Quote:
|
Re: floatpower error
Quote:
|
All times are GMT -4. The time now is 05:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.