Re: Help!!!!!

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Mon, 20 Apr 1998, Irv Mullins wrote:

> At 03:43 PM 4/20/98 +0100, you wrote:
> >>
> >>      Can someone tell me what the hell i have to do to transform
> >>      a large number ( 2000000000000 ) in to a string?I use the
> >>      sprintf() function but the string it returns is in the 'e'
> >>      format! ( something like "2.0e7" )
> >
> >Provided sprintf("%f", 2000000000000) doesn't work either, you'll have t=
o
> >code a solution.
> >
> Of course, %f will give results in scientific notation.
> Why not just use %d ?
> Yes, I tried it, it works.

Yeah, I know, sorry. I guess I just assumed that Ra=FAl had already tried
%d. :(

Anyways, basebag should be on my site Friday. I'll post to the mailing
list again if it is. I wouldn't want anybody looking for something that
isn't on my site.

Basebag goes one better than sprintf, by being able to cope with any base
you throw at it [2 <=3D base <=3D 36 that is :) ]
IIRC, sprintf can only do decimal and "hex" [or can it do octal too?=20
No docs where I am :( ]

Carl

PS For those who can't read iso8859-1, the =FA character is a "u'"
combination i.e. an accented "u".

--=20
Carl R White - "FBIbait: The President will be castrated in his sleep."
E-mail...: cyrek- at -bigfoot.com              / Remove the hyphens before
Finger...: crwhite- at -dcsun1.comp.brad.ac.uk \ mailing or fingering...
Url......: http://www.bigfoot.com/~cyrek/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu