| Computers Forum Index » Computer Languages (Perl - Modules) » sprintf() for Math::BigInts and Math::BigFloats... |
|
Page 1 of 1 |
|
| Author |
Message |
| Peter John Acklam... |
Posted: Wed Aug 26, 2009 10:13 pm |
|
|
|
Guest
|
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 |
|
|
| Back to top |
|
|
|
|