Warwick Harvey wrote: > ... > Examples where I've used sprintf: > ... We can add it for the next release. By the way, there is a little known library lib(fromonto) which implements (among others) the following shorthand: ?- printf("Result %.2f", [6.9]) onto_string S. S = "Result 6.90" Yes (0.00s cpu) [However, it works by temporarily redirecting the 'output' stream, so a proper sprintf is still the cleaner solution] -- JoachimReceived on Tue Sep 11 2007 - 10:37:28 CEST
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST