[PATCH] Add Roman numerals in *printf
Martin Sebor
msebor@gmail.com
Mon Apr 4 22:59:00 GMT 2016
> This patch adds the `%r' modifier in all the *printf functions,
> which can be used to represent a number in Roman numerals.
A bit late to the April 1 party, but a C++ Standard Library
implementation I worked on years ago actually has this feature.
It makes it possible to use the usual C++ iostream inserter and
extractor operators to format and parse not only Roman numerals
(that was done mostly just to give base 1 a meaning), but more
usefully numbers in any base between 1 and 36. The implementation
still ships with a number of compilers, though I think only one
(Compaq/HP CC for Tru64) has the version with the Roman numerals.
Martin
More information about the Libc-alpha
mailing list