Main Page | Report this Page
Computers Forum Index  »  Computer Languages (Perl - Modules)  »  sprintf() for Math::BigInts and Math::BigFloats...
Page 1 of 1    

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

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
 
 
Page 1 of 1    
All times are GMT
The time now is Mon Dec 07, 2009 12:52 pm