[Cuis-dev] I just ported printf to Cuis
Nicola Mingotti
nmingotti at gmail.com
Mon Aug 16 07:15:30 PDT 2021
Hi guys,
I ported printf from Squeak to Cuis. Zero dependencies.
I change almost nothing.
I did it mostly because i need to format numbers in the classic way.
For dates, currencies etc.
The package is here:
https://github.com/nmingotti/Cuis-Smalltalk-Printf.git
----------- example
Feature require: 'Printf'.
'foo %d bar' printf: {123}. "=> 'foo 123 bar' "
'foo %.5f bar' printf: {123.12}. "=> 'foo 123.12000 bar' "
----------
bye
Nicola
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210816/5dfff384/attachment.htm>
More information about the Cuis-dev
mailing list