$92 GRAYBYTE WORDPRESS FILE MANAGER $96

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby18/share/ri/1.8/system/Kernel/

HOME
Current File : /opt/alt/ruby18/share/ri/1.8/system/Kernel//format-i.yaml
--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Returns the string resulting from applying <em>format_string</em> to any additional arguments. Within the format string, any characters other than format sequences are copied to the result. A format sequence consists of a percent sign, followed by optional flags, width, and precision indicators, then terminated with a field type character. The field type controls how the corresponding <tt>sprintf</tt> argument is to be interpreted, while the flags modify that interpretation. The field type characters are listed in the table at the end of this section. The flag characters are:"
- !ruby/struct:SM::Flow::VERB 
  body: "  Flag     | Applies to   | Meaning\n  ---------+--------------+-----------------------------------------\n  space    | bdeEfgGiouxX | Leave a space at the start of\n           |              | positive numbers.\n  ---------+--------------+-----------------------------------------\n  (digit)$ | all          | Specifies the absolute argument number\n           |              | for this field. Absolute and relative\n           |              | argument numbers cannot be mixed in a\n           |              | sprintf string.\n  ---------+--------------+-----------------------------------------\n   #       | beEfgGoxX    | Use an alternative format. For the\n           |              | conversions `o', `x', `X', and `b',\n           |              | prefix the result with ``0'', ``0x'', ``0X'',\n           |              |  and ``0b'', respectively. For `e',\n           |              | `E', `f', `g', and 'G', force a decimal\n           |              | point to be added, even if no digits follow.\n           |              | For `g' and 'G', do not remove trailing zeros.\n  ---------+--------------+-----------------------------------------\n  +        | bdeEfgGiouxX | Add a leading plus sign to positive numbers.\n  ---------+--------------+-----------------------------------------\n  -        | all          | Left-justify the result of this conversion.\n  ---------+--------------+-----------------------------------------\n  0 (zero) | bdeEfgGiouxX | Pad with zeros, not spaces.\n  ---------+--------------+-----------------------------------------\n  *        | all          | Use the next argument as the field width.\n           |              | If negative, left-justify the result. If the\n           |              | asterisk is followed by a number and a dollar\n           |              | sign, use the indicated argument as the width.\n"
- !ruby/struct:SM::Flow::P 
  body: The field width is an optional integer, followed optionally by a period and a precision. The width specifies the minimum number of characters that will be written to the result for this field. For numeric fields, the precision controls the number of decimal places displayed. For string fields, the precision determines the maximum number of characters to be copied from the string. (Thus, the format sequence <tt>%10.10s</tt> will always contribute exactly ten characters to the result.)
- !ruby/struct:SM::Flow::P 
  body: "The field types are:"
- !ruby/struct:SM::Flow::VERB 
  body: "    Field |  Conversion\n    ------+--------------------------------------------------------------\n      b   | Convert argument as a binary number.\n      c   | Argument is the numeric code for a single character.\n      d   | Convert argument as a decimal number.\n      E   | Equivalent to `e', but uses an uppercase E to indicate\n          | the exponent.\n      e   | Convert floating point argument into exponential notation\n          | with one digit before the decimal point. The precision\n          | determines the number of fractional digits (defaulting to six).\n      f   | Convert floating point argument as [-]ddd.ddd,\n          |  where the precision determines the number of digits after\n          | the decimal point.\n      G   | Equivalent to `g', but use an uppercase `E' in exponent form.\n      g   | Convert a floating point number using exponential form\n          | if the exponent is less than -4 or greater than or\n          | equal to the precision, or in d.dddd form otherwise.\n      i   | Identical to `d'.\n      o   | Convert argument as an octal number.\n      p   | The valuing of argument.inspect.\n      s   | Argument is a string to be substituted. If the format\n          | sequence contains a precision, at most that many characters\n          | will be copied.\n      u   | Treat argument as an unsigned decimal number. Negative integers\n          | are displayed as a 32 bit two's complement plus one for the\n          | underlying architecture; that is, 2 ** 32 + n.  However, since\n          | Ruby has no inherent limit on bits used to represent the\n          | integer, this value is preceded by two dots (..) in order to\n          | indicate a infinite number of leading sign bits.\n      X   | Convert argument as a hexadecimal number using uppercase\n          | letters. Negative numbers will be displayed with two\n          | leading periods (representing an infinite string of\n          | leading 'FF's.\n      x   | Convert argument as a hexadecimal number.\n          | Negative numbers will be displayed with two\n          | leading periods (representing an infinite string of\n          | leading 'ff's.\n"
- !ruby/struct:SM::Flow::P 
  body: "Examples:"
- !ruby/struct:SM::Flow::VERB 
  body: "   sprintf(&quot;%d %04x&quot;, 123, 123)               #=&gt; &quot;123 007b&quot;\n   sprintf(&quot;%08b '%4s'&quot;, 123, 123)            #=&gt; &quot;01111011 ' 123'&quot;\n   sprintf(&quot;%1$*2$s %2$d %1$s&quot;, &quot;hello&quot;, 8)   #=&gt; &quot;   hello 8 hello&quot;\n   sprintf(&quot;%1$*2$s %2$d&quot;, &quot;hello&quot;, -8)       #=&gt; &quot;hello    -8&quot;\n   sprintf(&quot;%+g:% g:%-g&quot;, 1.23, 1.23, 1.23)   #=&gt; &quot;+1.23: 1.23:1.23&quot;\n   sprintf(&quot;%u&quot;, -123)                        #=&gt; &quot;..4294967173&quot;\n"
full_name: Kernel#format
is_singleton: false
name: format
params: |
  format(format_string [, arguments...] )   => string
  sprintf(format_string [, arguments...] )  => string

visibility: public


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.50 PM
root / linksafe
0755
%60-i.yaml
0.641 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
Array-i.yaml
0.529 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
Float-i.yaml
0.537 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
Integer-i.yaml
0.768 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
Pathname-i.yaml
0.304 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
String-i.yaml
0.486 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
URI-i.yaml
0.289 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
__method__-i.yaml
0.593 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
abort-i.yaml
0.385 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
at_exit-i.yaml
0.77 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
autoload%3f-i.yaml
0.517 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
autoload-i.yaml
0.515 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
binding-i.yaml
0.662 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
block_given%3f-i.yaml
0.722 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
callcc-i.yaml
0.693 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
caller-i.yaml
0.945 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
catch-i.yaml
1.027 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
cdesc-Kernel.yaml
4.429 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
chomp%21-i.yaml
0.563 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
chomp-i.yaml
0.645 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
chop%21-i.yaml
0.549 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
chop-i.yaml
0.627 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
eval-i.yaml
0.863 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
exec-i.yaml
1.217 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
exit%21-i.yaml
0.41 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
exit-i.yaml
1.348 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
fail-i.yaml
1.068 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
fork-i.yaml
1.044 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
format-i.yaml
6.111 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
getc-i.yaml
0.202 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
gets-i.yaml
1.26 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
global_variables-i.yaml
0.439 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
gsub%21-i.yaml
0.559 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
gsub-i.yaml
0.559 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
iterator%3f-i.yaml
0.716 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
lambda-i.yaml
0.383 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
load-i.yaml
0.692 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
local_variables-i.yaml
0.447 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
loop-i.yaml
0.486 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
method_missing-i.yaml
1.047 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
open-i.yaml
0.913 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
open_uri_original_open-i.yaml
0.25 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
p-i.yaml
0.61 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
pp-i.yaml
0.278 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
pretty_inspect-i.yaml
0.257 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
print-i.yaml
0.915 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
printf-i.yaml
0.503 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
proc-i.yaml
0.379 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
putc-i.yaml
0.292 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
puts-i.yaml
0.302 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
raise-i.yaml
1.07 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
rand-i.yaml
1.005 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
readline-i.yaml
0.338 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
readlines-i.yaml
0.359 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
require-i.yaml
1.151 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
scan-i.yaml
0.339 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
scanf-i.yaml
0.166 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
select-i.yaml
0.319 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
set_trace_func-i.yaml
1.721 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
sleep-i.yaml
0.791 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
split-i.yaml
0.327 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
sprintf-i.yaml
6.113 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
srand-i.yaml
0.719 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
sub%21-i.yaml
0.327 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
sub-i.yaml
0.369 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
syscall-i.yaml
0.884 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
system-i.yaml
0.726 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
test-i.yaml
2.83 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
throw-i.yaml
0.55 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
trace_var-i.yaml
0.961 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
trap-i.yaml
1.361 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
untrace_var-i.yaml
0.476 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
warn-i.yaml
0.342 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
y-i.yaml
0.532 KB
26 Jul 2023 1.47 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF