Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

remove leading zeros with sprintf?

Name: Anonymous 2009-07-27 14:10

can i remove the leading zeros from a float value using sprintf and a float value such as 0.9 ?

Name: Anonymous 2009-07-27 14:19

Forget it, it's NP complete.

Name: Anonymous 2009-07-27 14:56

string_trim_zeroes()

Name: Anonymous 2009-07-27 14:58

only sprintf allowed lol, no regex or string manipulation functions.

i guess it can't be done so it's a pretty stupid question...

Name: Anonymous 2009-07-27 15:18

Name: Anonymous 2010-12-17 1:28

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Don't change these.
Name: Email:
Entire Thread Thread List