Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Printf
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Other contexts=== The following list includes notable programming languages that provide (directly or via a standard library) functionality that is the same or similar to the C printf-like functions. Excluded are languages that use format strings that deviate from the style in this article (such as [[AMPL]] and [[Elixir (programming language)|Elixir]]), languages that inherit their implementation from the [[JVM]] or other environment (such as [[Clojure]] and [[Scala (programming language)|Scala]]), and languages that do not have a standard native printf implementation but have external libraries which emulate printf behavior (such as [[JavaScript]]). {{div col}} *[[awk]]<ref>{{cite standard| url=https://pubs.opengroup.org/onlinepubs/9699919799/utilities/awk.html#tag_20_06_13_10 |title="The Open Group Base Specifications Issue 7, 2018 edition", "POSIX awk", "Output Statements" | website=pubs.opengroup.org | publisher= [[The Open Group]] | access-date=2022-05-29}}</ref> *[[C (programming language)|C]] *[[C++]] *[[D (programming language)|D]] *[[F Sharp (programming language)|F#]] *[[LabVIEW|G]] *[[GNU Linear Programming Kit|GNU MathProg]] *[[GNU Octave]] *[[Go (programming language)|Go]] *[[Haskell programming language|Haskell]] *[[J (programming language)|J]] *[[Java (programming language)|Java]] (since version 1.5) and JVM languages *[[Julia (programming language)|Julia]] (via Printf standard library<ref>{{cite web |title=Printf Standard Library |url=https://docs.julialang.org/en/v1/stdlib/Printf/ |website=The Julia Language Manual |access-date=22 February 2021}}</ref>) *[[Lua (programming language)|Lua]] ({{code|string.format|lua}}) *[[Maple (software)|Maple]] *[[MATLAB]] *[[Max (software)|Max]] (via the {{code|sprintf}} object) *[[Objective-C]] *[[OCaml]] (via the Printf module) *[[PARI/GP]] *[[Perl]] *[[PHP]] *[[Python (programming language)|Python]] (via {{code|%|python}} operator)<ref>{{citation |title=The Python Standard Library |section=Built-in Types: <code>printf</code>-style String Formatting |publisher=Python Software Foundation |section-url=https://docs.python.org/library/stdtypes.html#old-string-formatting |access-date=2021-02-24}}</ref> *[[R (programming language)|R]] *[[Raku (programming language)|Raku]] (via {{code|printf|raku}}, {{code|sprintf|raku}}, and {{code|fmt|raku}}) *[[Red (programming language)|Red/System]] *[[Ruby (programming language)|Ruby]] *[[Tcl]] (via {{code|format}} command) *[[Transact-SQL]] (via [https://technet.microsoft.com/en-us/library/ms175014.aspx {{code|xp_sprintf}}]) *[[Vala (programming language)|Vala]] (via {{code|print()}} and {{code|FileStream.printf()}}) {{div col end}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)