sprintf() for Math::BigInts and Math::BigFloats

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have written a sprintf() implementation which handles
Math::BigInt and Math::BigFloat objects. (It does handle ordinary
Perl numbers and strings too, so with only a few exceptions it can
be used as a drop-in for CORE::sprintf.)

Now I am wondering: What is the best way to implement it so it is
most useful? What namespace should I use? Should it be a function
or a method? Math::BigInt::sprintf()? Math::BigInt->bsprintf()?

Suggestions are highly welcome.


~/.signature: No such file or directory

Re: sprintf() for Math::BigInts and Math::BigFloats

This sounds like exactly what I'm looking for.  May I use this?

Site Timeline