Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.217.103
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby34 /
share /
ri /
system /
Delete
Unzip
Name
Size
Permission
Date
Action
ARGF
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Addrinfo
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
ArgumentError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Array
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
BasicObject
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
BasicSocket
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Benchmark
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
BigDecimal
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Binding
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Bundler
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
CGI
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Class
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
ClosedQueueError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Comparable
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Complex
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Continuation
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
CoreExtensions
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Coverage
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Data
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Date
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
DateTime
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Delegator
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
DidYouMean
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Digest
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Dir
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
ENV
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
EOFError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
ERB
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Encoding
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
EncodingError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
English
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Enumerable
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Enumerator
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Errno
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
ErrorHighlight
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Etc
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Exception
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
FalseClass
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Fcntl
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Fiber
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
FiberError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Fiddle
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
File
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
FileTest
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
FileUtils
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Find
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Float
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
FloatDomainError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Forwardable
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
FrozenError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
GC
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Gem
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Hash
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
IO
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
IOError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
IPAddr
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
IPSocket
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
IndexError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Integer
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Interrupt
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
JSON
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Kernel
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
KeyError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
LoadError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
LocalJumpError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Logger
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
MakeMakefile
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Marshal
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
MatchData
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Math
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Method
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Module
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Monitor
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
MonitorMixin
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
NEWS
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
NameError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Net
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
NilClass
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
NoMatchingPatternError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
NoMatchingPatternKeyError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
NoMemoryError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
NoMethodError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
NotImplementedError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Numeric
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
OLEProperty
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Object
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
ObjectSpace
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Open3
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
OpenSSL
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
OpenStruct
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
OpenURI
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
OptionParser
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
PP
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
PStore
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
PTY
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Pathname
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
PrettyPrint
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Prism
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Proc
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Process
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Psych
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
RDoc
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Ractor
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
RactorLocalSingleton
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Rake
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Random
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Range
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
RangeError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Rational
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
RbConfig
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Readline
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Refinement
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Regexp
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
RegexpError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Reline
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Resolv
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Ripper
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
RubyVM
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
RuntimeError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
SOCKSSocket
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
ScriptError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
SecureRandom
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
SecurityError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Set
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Shellwords
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Signal
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
SignalException
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
SimpleDelegator
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
SingleForwardable
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Singleton
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Socket
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
SocketError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
StandardError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
StopIteration
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
String
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
StringIO
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
StringScanner
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Struct
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Symbol
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
SyntaxError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
SyntaxSuggest
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
SystemCallError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
SystemExit
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
SystemStackError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
TCPServer
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
TCPSocket
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
TSort
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Tempfile
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Thread
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
ThreadError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
ThreadGroup
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Time
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Timeout
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
TracePoint
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
TrueClass
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
TypeError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
UDPSocket
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
UNIXServer
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
UNIXSocket
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
URI
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
UnboundMethod
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
UncaughtThrowError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
UnicodeNormalize
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
WIN32OLE
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Warning
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
WeakRef
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Win32
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
YAML
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
ZeroDivisionError
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
Zlib
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
contributing
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
date
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
fatal
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
optparse
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
regexp
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
rjit
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
ruby
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
syntax
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
yjit
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
cache.ri
384.64
KB
-rw-r--r--
2026-04-07 16:51
page-COPYING.ri
3.06
KB
-rw-r--r--
2026-04-07 16:51
page-COPYING_ja.ri
3.14
KB
-rw-r--r--
2026-04-07 16:51
page-LEGAL.ri
48.67
KB
-rw-r--r--
2026-04-07 16:51
page-NEWS_md.ri
46.58
KB
-rw-r--r--
2026-04-07 16:51
page-README_ja_md.ri
10.59
KB
-rw-r--r--
2026-04-07 16:51
page-README_md.ri
4.45
KB
-rw-r--r--
2026-04-07 16:51
page-bsearch_rdoc.ri
5.51
KB
-rw-r--r--
2026-04-07 16:51
page-bug_triaging_rdoc.ri
4.83
KB
-rw-r--r--
2026-04-07 16:51
page-case_mapping_rdoc.ri
4.56
KB
-rw-r--r--
2026-04-07 16:51
page-character_selectors_rdoc.ri
4.59
KB
-rw-r--r--
2026-04-07 16:51
page-command_injection_rdoc.ri
1.77
KB
-rw-r--r--
2026-04-07 16:51
page-contributing_md.ri
1.43
KB
-rw-r--r--
2026-04-07 16:51
page-dig_methods_rdoc.ri
3.66
KB
-rw-r--r--
2026-04-07 16:51
page-distribution_md.ri
2.57
KB
-rw-r--r--
2026-04-07 16:51
page-dtrace_probes_rdoc.ri
9.92
KB
-rw-r--r--
2026-04-07 16:51
page-encodings_rdoc.ri
20.76
KB
-rw-r--r--
2026-04-07 16:51
page-exceptions_md.ri
14.96
KB
-rw-r--r--
2026-04-07 16:51
page-extension_ja_rdoc.ri
86.85
KB
-rw-r--r--
2026-04-07 16:51
page-extension_rdoc.ri
92.22
KB
-rw-r--r--
2026-04-07 16:51
page-fiber_md.ri
7.55
KB
-rw-r--r--
2026-04-07 16:51
page-format_specifications_rdoc.ri
12.97
KB
-rw-r--r--
2026-04-07 16:51
page-globals_rdoc.ri
11.52
KB
-rw-r--r--
2026-04-07 16:51
page-implicit_conversion_rdoc.ri
7.79
KB
-rw-r--r--
2026-04-07 16:51
page-index_md.ri
3.59
KB
-rw-r--r--
2026-04-07 16:51
page-maintainers_md.ri
21.69
KB
-rw-r--r--
2026-04-07 16:51
page-marshal_rdoc.ri
14.17
KB
-rw-r--r--
2026-04-07 16:51
page-memory_view_md.ri
8.85
KB
-rw-r--r--
2026-04-07 16:51
page-packed_data_rdoc.ri
27.94
KB
-rw-r--r--
2026-04-07 16:51
page-ractor_md.ri
31.78
KB
-rw-r--r--
2026-04-07 16:51
page-security_rdoc.ri
7.12
KB
-rw-r--r--
2026-04-07 16:51
page-signals_rdoc.ri
4.96
KB
-rw-r--r--
2026-04-07 16:51
page-standard_library_md.ri
12.84
KB
-rw-r--r--
2026-04-07 16:51
page-strftime_formatting_rdoc.ri
20.9
KB
-rw-r--r--
2026-04-07 16:51
page-syntax_rdoc.ri
1.97
KB
-rw-r--r--
2026-04-07 16:51
page-windows_md.ri
8.11
KB
-rw-r--r--
2026-04-07 16:51
Save
Rename
U:RDoc::TopLevel[ i I"format_specifications.rdoc:ETcRDoc::Parser::Simpleo:RDoc::Markup::Document:@parts[�S:RDoc::Markup::Heading: leveli: textI"Format Specifications;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph;[I"JSeveral Ruby core classes have instance method +printf+ or +sprintf+:;T@ o:RDoc::Markup::List: @type:BULLET:@items[ o:RDoc::Markup::ListItem:@label0;[o; ;[I"ARGF#printf;To;;0;[o; ;[I"IO#printf;To;;0;[o; ;[I"Kernel#printf;To;;0;[o; ;[I"Kernel#sprintf;T@ o; ;[I"!Each of these methods takes:;T@ o;;;;[o;;0;[o; ;[I"6Argument +format_string+, which has zero or more ;TI"4embedded _format_ _specifications_ (see below).;To;;0;[o; ;[I"SArguments <tt>*arguments</tt>, which are zero or more objects to be formatted.;T@ o; ;[ I"8Each of these methods prints or returns the string ;TI"#resulting from replacing each ;TI"Iformat specification embedded in +format_string+ with a string form ;TI"5of the corresponding argument among +arguments+.;T@ o; ;[I"A simple example:;T@ o:RDoc::Markup::Verbatim;[I"Isprintf('Name: %s; value: %d', 'Foo', 0) # => "Name: Foo; value: 0" ;T:@format0o; ;[I")A format specification has the form:;T@ o;;[I"%%[flags][width][.precision]type ;T;0o; ;[I"It consists of:;T@ o;;;;[ o;;0;[o; ;[I"!A leading percent character.;To;;0;[o; ;[I"0Zero or more _flags_ (each is a character).;To;;0;[o; ;[I"2An optional _width_ _specifier_ (an integer).;To;;0;[o; ;[I"WAn optional _precision_ _specifier_ (a period followed by a non-negative integer).;To;;0;[o; ;[I"(A _type_ _specifier_ (a character).;T@ o; ;[I"/Except for the leading percent character, ;TI"Ithe only required part is the type specifier, so we begin with that.;T@ S; ; i;I"Type Specifiers;T@ o; ;[I"GThis section provides a brief explanation of each type specifier. ;TI"0The links lead to the details and examples.;T@ S; ; i;I"\Integer Type Specifiers;T@ o;;;;[ o;;0;[o; ;[I"8+b+ or +B+: Format +argument+ as a binary integer. ;TI"VSee {Specifiers b and B}[rdoc-ref:format_specifications.rdoc@Specifiers+b+and+B].;To;;0;[o; ;[I"++d+, +i+, or +u+ (all are identical): ;TI"-Format +argument+ as a decimal integer. ;TI"HSee {Specifier d}[rdoc-ref:format_specifications.rdoc@Specifier+d].;To;;0;[o; ;[I"1+o+: Format +argument+ as an octal integer. ;TI"HSee {Specifier o}[rdoc-ref:format_specifications.rdoc@Specifier+o].;To;;0;[o; ;[I"=+x+ or +X+: Format +argument+ as a hexadecimal integer. ;TI"VSee {Specifiers x and X}[rdoc-ref:format_specifications.rdoc@Specifiers+x+and+X].;T@ S; ; i;I"#Floating-Point Type Specifiers;T@ o;;;;[ o;;0;[o; ;[I"I+a+ or +A+: Format +argument+ as hexadecimal floating-point number. ;TI"VSee {Specifiers a and A}[rdoc-ref:format_specifications.rdoc@Specifiers+a+and+A].;To;;0;[o; ;[I";+e+ or +E+: Format +argument+ in scientific notation. ;TI"VSee {Specifiers e and E}[rdoc-ref:format_specifications.rdoc@Specifiers+e+and+E].;To;;0;[o; ;[I"@+f+: Format +argument+ as a decimal floating-point number. ;TI"HSee {Specifier f}[rdoc-ref:format_specifications.rdoc@Specifier+f].;To;;0;[o; ;[I":+g+ or +G+: Format +argument+ in a "general" format. ;TI"VSee {Specifiers g and G}[rdoc-ref:format_specifications.rdoc@Specifiers+g+and+G].;T@ S; ; i;I"Other Type Specifiers;T@ o;;;;[ o;;0;[o; ;[I",+c+: Format +argument+ as a character. ;TI"HSee {Specifier c}[rdoc-ref:format_specifications.rdoc@Specifier+c].;To;;0;[o; ;[I"G+p+: Format +argument+ as a string via <tt>argument.inspect</tt>. ;TI"HSee {Specifier p}[rdoc-ref:format_specifications.rdoc@Specifier+p].;To;;0;[o; ;[I"D+s+: Format +argument+ as a string via <tt>argument.to_s</tt>. ;TI"HSee {Specifier s}[rdoc-ref:format_specifications.rdoc@Specifier+s].;To;;0;[o; ;[I"Q<tt>%</tt>: Format +argument+ (<tt>'%'</tt>) as a single percent character. ;TI"JSee {Specifier %}[rdoc-ref:format_specifications.rdoc@Specifier+-25].;T@ S; ; i;I" Flags;T@ o; ;[I"BThe effect of a flag may vary greatly among type specifiers. ;TI"*These remarks are general in nature. ;TI"jSee {type-specific details}[rdoc-ref:format_specifications.rdoc@Type+Specifier+Details+and+Examples].;T@ o; ;[I"=Multiple flags may be given with single type specifier; ;TI"order does not matter.;T@ S; ; i;I"<tt>' '</tt> Flag;T@ o; ;[I"1Insert a space before a non-negative number:;T@ o;;[I""sprintf('%d', 10) # => "10" ;TI"#sprintf('% d', 10) # => " 10" ;T;0o; ;[I",Insert a minus sign for negative value:;T@ o;;[I"$sprintf('%d', -10) # => "-10" ;TI"$sprintf('% d', -10) # => "-10" ;T;0S; ; i;I"<tt>'#'</tt> Flag;T@ o; ;[I"1Use an alternate format; varies among types:;T@ o;;[I"#sprintf('%x', 100) # => "64" ;TI"%sprintf('%#x', 100) # => "0x64" ;T;0S; ; i;I"<tt>'+'</tt> Flag;T@ o; ;[I"7Add a leading plus sign for a non-negative number:;T@ o;;[I"#sprintf('%x', 100) # => "64" ;TI"$sprintf('%+x', 100) # => "+64" ;T;0S; ; i;I"<tt>'-'</tt> Flag;T@ o; ;[I")Left justify the value in its field:;T@ o;;[I"(sprintf('%6d', 100) # => " 100" ;TI"(sprintf('%-6d', 100) # => "100 " ;T;0S; ; i;I"<tt>'0'</tt> Flag;T@ o; ;[I"+Left-pad with zeros instead of spaces:;T@ o;;[I"(sprintf('%6d', 100) # => " 100" ;TI"(sprintf('%06d', 100) # => "000100" ;T;0S; ; i;I"<tt>'*'</tt> Flag;T@ o; ;[I".Use the next argument as the field width:;T@ o;;[I"&sprintf('%d', 20, 14) # => "20" ;TI"8sprintf('%*d', 20, 14) # => " 14" ;T;0S; ; i;I"<tt>'n$'</tt> Flag;T@ o; ;[I"@Format the (1-based) <tt>n</tt>th argument into this field:;T@ o;;[I"?sprintf("%s %s", 'world', 'hello') # => "world hello" ;TI"?sprintf("%2$s %1$s", 'world', 'hello') # => "hello world" ;T;0S; ; i;I"Width Specifier;T@ o; ;[I"PIn general, a width specifier determines the minimum width (in characters) ;TI"of the formatted field:;T@ o;;[I"-sprintf('%10d', 100) # => " 100" ;TI" ;TI"!# Left-justify if negative. ;TI"-sprintf('%-10d', 100) # => "100 " ;TI" ;TI"# Ignore if too small. ;TI"&sprintf('%1d', 100) # => "100" ;T;0S; ; i;I"Precision Specifier;T@ o; ;[I"GA precision specifier is a decimal point followed by zero or more ;TI"decimal digits.;T@ o; ;[ I"PFor integer type specifiers, the precision specifies the minimum number of ;TI"Wdigits to be written. If the precision is shorter than the integer, the result is ;TI"Upadded with leading zeros. There is no modification or truncation of the result ;TI"1if the integer is longer than the precision:;T@ o;;[I"&sprintf('%.3d', 1) # => "001" ;TI"'sprintf('%.3d', 1000) # => "1000" ;TI" ;TI"D# If the precision is 0 and the value is 0, nothing is written ;TI" sprintf('%.d', 0) # => "" ;TI" sprintf('%.0d', 0) # => "" ;T;0o; ;[I"KFor the +a+/+A+, +e+/+E+, +f+/+F+ specifiers, the precision specifies ;TI"@the number of digits after the decimal point to be written:;T@ o;;[ I"+sprintf('%.2f', 3.14159) # => "3.14" ;TI"3sprintf('%.10f', 3.14159) # => "3.1415900000" ;TI" ;TI"C# With no precision specifier, defaults to 6-digit precision. ;TI"/sprintf('%f', 3.14159) # => "3.141590" ;T;0o; ;[I"9For the +g+/+G+ specifiers, the precision specifies ;TI"4the number of significant digits to be written:;T@ o;;[I"-sprintf('%.2g', 123.45) # => "1.2e+02" ;TI")sprintf('%.3g', 123.45) # => "123" ;TI"-sprintf('%.10g', 123.45) # => "123.45" ;TI" ;TI"F# With no precision specifier, defaults to 6 significant digits. ;TI".sprintf('%g', 123.456789) # => "123.457" ;T;0o; ;[I":For the +s+, +p+ specifiers, the precision specifies ;TI"'the number of characters to write:;T@ o;;[I"Asprintf('%s', Time.now) # => "2022-05-04 11:59:16 -0400" ;TI"2sprintf('%.10s', Time.now) # => "2022-05-04" ;T;0S; ; i;I"(Type Specifier Details and Examples;T@ S; ; i;I"Specifiers +a+ and +A+;T@ o; ;[I"<Format +argument+ as hexadecimal floating-point number:;T@ o;;[ I":sprintf('%a', 3.14159) # => "0x1.921f9f01b866ep+1" ;TI";sprintf('%a', -3.14159) # => "-0x1.921f9f01b866ep+1" ;TI"-sprintf('%a', 4096) # => "0x1p+12" ;TI".sprintf('%a', -4096) # => "-0x1p+12" ;TI" ;TI"Q# Capital 'A' means that alphabetical characters are printed in upper case. ;TI"-sprintf('%A', 4096) # => "0X1P+12" ;TI".sprintf('%A', -4096) # => "-0X1P+12" ;T;0S; ; i;I"Specifiers +b+ and +B+;T@ o; ;[I"7The two specifiers +b+ and +B+ behave identically ;TI",except when flag <tt>'#'</tt>+ is used.;T@ o; ;[I"+Format +argument+ as a binary integer:;T@ o;;[I" sprintf('%b', 1) # => "1" ;TI""sprintf('%b', 4) # => "100" ;TI" ;TI"'# Prefix '..' for negative value. ;TI"$sprintf('%b', -4) # => "..100" ;TI" ;TI"# Alternate format. ;TI"%sprintf('%#b', 4) # => "0b100" ;TI"%sprintf('%#B', 4) # => "0B100" ;T;0S; ; i;I"Specifier +c+;T@ o; ;[I"-Format +argument+ as a single character:;T@ o;;[I"!sprintf('%c', 'A') # => "A" ;TI"!sprintf('%c', 65) # => "A" ;T;0o; ;[I"YThis behaves like String#<<, except for raising ArgumentError instead of RangeError.;T@ S; ; i;I"Specifier +d+;T@ o; ;[I",Format +argument+ as a decimal integer:;T@ o;;[I"$sprintf('%d', 100) # => "100" ;TI"%sprintf('%d', -100) # => "-100" ;T;0o; ;[I"&Flag <tt>'#'</tt> does not apply.;T@ S; ; i;I"Specifiers +e+ and +E+;T@ o; ;[I"Format +argument+ in ;TI"N{scientific notation}[https://en.wikipedia.org/wiki/Scientific_notation]:;T@ o;;[I"1sprintf('%e', 3.14159) # => "3.141590e+00" ;TI"2sprintf('%E', -3.14159) # => "-3.141590E+00" ;T;0S; ; i;I"Specifier +f+;T@ o; ;[I"2Format +argument+ as a floating-point number:;T@ o;;[I"-sprintf('%f', 3.14159) # => "3.141590" ;TI".sprintf('%f', -3.14159) # => "-3.141590" ;T;0o; ;[I"&Flag <tt>'#'</tt> does not apply.;T@ S; ; i;I"Specifiers +g+ and +G+;T@ o; ;[I"BFormat +argument+ using exponential form (+e+/+E+ specifier) ;TI"Pif the exponent is less than -4 or greater than or equal to the precision. ;TI"KOtherwise format +argument+ using floating-point form (+f+ specifier):;T@ o;;[I"$sprintf('%g', 100) # => "100" ;TI"&sprintf('%g', 100.0) # => "100" ;TI",sprintf('%g', 3.14159) # => "3.14159" ;TI"/sprintf('%g', 100000000000) # => "1e+11" ;TI"1sprintf('%g', 0.000000000001) # => "1e-12" ;TI" ;TI"*# Capital 'G' means use capital 'E'. ;TI"/sprintf('%G', 100000000000) # => "1E+11" ;TI"1sprintf('%G', 0.000000000001) # => "1E-12" ;TI" ;TI"# Alternate format. ;TI"6sprintf('%#g', 100000000000) # => "1.00000e+11" ;TI"8sprintf('%#g', 0.000000000001) # => "1.00000e-12" ;TI"6sprintf('%#G', 100000000000) # => "1.00000E+11" ;TI"8sprintf('%#G', 0.000000000001) # => "1.00000E-12" ;T;0S; ; i;I"Specifier +o+;T@ o; ;[I",Format +argument+ as an octal integer. ;TI"KIf +argument+ is negative, it will be formatted as a two's complement ;TI"prefixed with +..7+:;T@ o;;[ I"#sprintf('%o', 16) # => "20" ;TI" ;TI"(# Prefix '..7' for negative value. ;TI"&sprintf('%o', -16) # => "..760" ;TI" ;TI"5# Prefix zero for alternate format if positive. ;TI"$sprintf('%#o', 16) # => "020" ;TI"&sprintf('%#o', -16) # => "..760" ;T;0S; ; i;I"Specifier +p+;T@ o; ;[I"AFormat +argument+ as a string via <tt>argument.inspect</tt>:;T@ o;;[I"t = Time.now ;TI"Asprintf('%p', t) # => "2022-05-01 13:42:07.1645683 -0500" ;T;0S; ; i;I"Specifier +s+;T@ o; ;[I">Format +argument+ as a string via <tt>argument.to_s</tt>:;T@ o;;[I"t = Time.now ;TI"7sprintf('%s', t) # => "2022-05-01 13:42:07 -0500" ;T;0o; ;[I"&Flag <tt>'#'</tt> does not apply.;T@ S; ; i;I"Specifiers +x+ and +X+;T@ o; ;[I"1Format +argument+ as a hexadecimal integer. ;TI"KIf +argument+ is negative, it will be formatted as a two's complement ;TI"prefixed with +..f+:;T@ o;;[I"$sprintf('%x', 100) # => "64" ;TI" ;TI"(# Prefix '..f' for negative value. ;TI"'sprintf('%x', -100) # => "..f9c" ;TI" ;TI"# Use alternate format. ;TI"&sprintf('%#x', 100) # => "0x64" ;TI" ;TI",# Alternate format for negative value. ;TI")sprintf('%#x', -100) # => "0x..f9c" ;T;0S; ; i;I"Specifier <tt>%</tt>;T@ o; ;[I"DFormat +argument+ (<tt>'%'</tt>) as a single percent character:;T@ o;;[I"(sprintf('%d %%', 100) # => "100 %" ;T;0o; ;[I"Flags do not apply.;T@ S; ; i;I"Reference by Name;T@ o; ;[I"EFor more complex formatting, Ruby supports a reference by name. ;TI"A%<name>s style uses format style, but %{name} style doesn't.;T@ o; ;[I"Examples:;T@ o;;[I"Nsprintf("%<foo>d : %<bar>f", { :foo => 1, :bar => 2 }) # => 1 : 2.000000 ;TI"Esprintf("%{foo}f", { :foo => 1 }) # => "1f";T;0: @file@:0@omit_headings_from_table_of_contents_below0