|
-
May 29th, 2005, 06:49 AM
#5
Re: unwanted formatting of numbers
 Originally Posted by visualAd
Its not a problem. This is how PHP displays floating point numbers over a particular value. You need to use the sprintf() function to format the number appropriatly. E.g. to give the number as an interger:
PHP Code:
printf('%.0f', $number);
Then... How did the link I posted work correctly with exactly the same code? How very odd :S
Cheers,
RyanJ
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|