Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

4 views
Skip to first unread message

Peter John Acklam

unread,
Aug 26, 2009, 2:13:03 PM8/26/09
to
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.

Peter

--
~/.signature: No such file or directory

John K

unread,
Nov 18, 2010, 10:25:03 PM11/18/10
to
This sounds like exactly what I'm looking for. May I use this?


0 new messages