• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

4.32.2 Format
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Formatted Write
          • Format
            • format/1
            • format/2
            • format/3
    • Packages
Availability:built-in
format(+Output, +Format, :Arguments)
As format/2, but write the output on the given Output. The de-facto standard only allows Output to be a stream. The SWI-Prolog implementation allows all valid arguments for with_output_to/2.148Earlier versions defined sformat/3 . These predicates have been moved to the library library(backcomp). For example:
?- format(atom(A), '~D', [1000000]).
A = '1,000,000'

ClioPatria (version V3.1.1-51-ga0b30a5)