FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Removing insignificant decimal characters?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Removing insignificant decimal characters? [message #169485 is a reply to message #169479] Wed, 15 September 2010 01:50 Go to previous messageGo to previous message
Greg Russell is currently offline  Greg Russell
Messages: 2
Registered: September 2010
Karma:
Junior Member
In news:4c900b5f$1(at)news(dot)x-privat(dot)org,
MikeB <mpbrede(at)gmail(dot)com> typed:

> eg. I'd like the function to print
>
> 300 bytes iso 300.00 bytes
>
> and
>
> 4 Kb iso 4.00 Kb.
>
> Any hints as to how I can do this?

Use printf(). See
http://us2.php.net/manual/en/function.printf.php
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: getting amount of deleted rows from: $result=odbc_exec($conn, 'delete from....');
Next Topic: echo other way to output a constant?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 00:16:34 GMT 2024

Total time taken to generate the page: 0.04615 seconds