Format Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Field Type Characters

convert argument as a binary number

A

b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Field Type Characters

equivalent to b, but uses an uppercase 0B for prefix | in the alternative format by #

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Field Type Characters

convert argument as a decimal number

A

d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Field Type Characters

identical to d

A

i

u

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Field Type Characters

convert argument as an octal number

A

o

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Field Type Characters

convert argument as a hexadecimal number

A

x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Field Type Characters

equivalent to x, but uses uppercase letters

A

X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Field Type Characters

convert floating sequel_persistencepoint argument into exponential notation with one digit before the decimal point as [-]d.dddddde[+-]dd; the precision specifies the number of digits after the decimal | point (defaulting to six)

A

e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Field Type Characters

equivalent to e, but uses an uppercase E to indicate the exponent

A

E

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Field Type Characters

convert floating point argument as [-]ddd.dddddd, where the precision specifies the number of digits after the decimal point

A

f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Field Type Characters

convert a floating point number using exponential form if the exponent is less than -4 or greater than or equal to the precision, or in dd.dddd form otherwise; the precision specifies the number of significant digits

A

g

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Field Type Characters

equivalent to g, but use an uppercase E in exponent form

A

G

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Field Type Characters

convert floating point argument as [-]0xh.hhhhp[+-]dd, which is consisted from optional sign, “0x”, fraction part as hexadecimal, “p”, and exponential part as decimal

A

a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Field Type Characters

equivalent to a, but use uppercase X and P

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Field Type Characters

argument is the numeric code for a single character or a single character string itself

A

c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Field Type Characters

the valuing of argument.inspect

A

p

17
Q

Field Type Characters

argument is a string to be substituted; if the format sequence contains a precision, at most that many characters will be copied

A

s

18
Q

Field Type Characters

a percent sign itself will be displayed; no argument taken

A

%

19
Q

Flag Characters

leave a space at the start of non negative numbers; for o, x, X, b and B, use a minus sign with absolute value for negative values

A

space

20
Q

Flag Characters

specify the absolute argument number for this field; absolute and relative argument numbers cannot be mixed in a sprintf string

A

(digit)$

21
Q

Flag Characters

use an alternative format; or the conversions o, increase the precision until the first digit will be 0 if it is not formatted as complements; for the conversions x, X, b and B on non zero, prefix the result with 0x, 0X, 0b and 0B, respectively; for a, A, e, E, f, g, and G, force a decimal point to be added, even if no digits follow; for g and ‘G`, do not remove trailing zeros

A

#

22
Q

Flag Characters

add a leading plus sign to non negative numbers; for o, x, X, b and B, use a minus sign with absolute value for negative values

A

+

23
Q

Flag Characters

left-justify the result of this conversion

A

-

24
Q

Flag Characters

pad with zeros, not spaces; for o, x, X, b and B, radix-1 is used for negative numbers formatted as complements

A

0 (zero)

25
Q

Flag Characters

use the next argument as the field width; if negative, left-justify the result; if the asterisk is followed by a number and a dollar sign, use the indicated argument as the width

A

*

26
Q
A