printf.3 (101578) | printf.3 (101677) |
---|---|
1.\" Copyright (c) 1990, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" Chris Torek and the American National Standards Committee X3, 6.\" on Information Processing Systems. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)printf.3 8.1 (Berkeley) 6/4/93 | 1.\" Copyright (c) 1990, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" Chris Torek and the American National Standards Committee X3, 6.\" on Information Processing Systems. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)printf.3 8.1 (Berkeley) 6/4/93 |
37.\" $FreeBSD: head/lib/libc/stdio/printf.3 101578 2002-08-09 11:24:21Z ru $ | 37.\" $FreeBSD: head/lib/libc/stdio/printf.3 101677 2002-08-11 13:05:30Z schweikh $ |
38.\" 39.Dd November 8, 2001 40.Dt PRINTF 3 41.Os 42.Sh NAME 43.Nm printf , fprintf , sprintf , snprintf , asprintf , 44.Nm vprintf , vfprintf, vsprintf , vsnprintf , vasprintf 45.Nd formatted output conversion --- 224 unchanged lines hidden (view full) --- 270.Cm ( d , u , 271or 272.Cm i ) 273or the integral portion of a floating point conversion 274.Cm ( f 275or 276.Cm F ) 277should be grouped and separated by thousands using | 38.\" 39.Dd November 8, 2001 40.Dt PRINTF 3 41.Os 42.Sh NAME 43.Nm printf , fprintf , sprintf , snprintf , asprintf , 44.Nm vprintf , vfprintf, vsprintf , vsnprintf , vasprintf 45.Nd formatted output conversion --- 224 unchanged lines hidden (view full) --- 270.Cm ( d , u , 271or 272.Cm i ) 273or the integral portion of a floating point conversion 274.Cm ( f 275or 276.Cm F ) 277should be grouped and separated by thousands using |
278the non-monetary seperator returned by | 278the non-monetary separator returned by |
279.Xr localeconv 3 . 280.El 281.It 282An optional decimal digit string specifying a minimum field width. 283If the converted value has fewer characters than the field width, it will 284be padded with spaces on the left (or right, if the left-adjustment 285flag has been given) to fill out 286the field width. --- 226 unchanged lines hidden (view full) --- 513.Sm off 514.Oo \- Oc Li 0x Ar h Li \&. Ar hhhp Oo \\*[Pm] Oc Ar d , 515.Sm on 516where the number of digits after the hexadecimal-point character 517is equal to the precision specification. 518If the precision is missing, it is taken as enough to exactly 519represent the floating-point number; if the precision is 520explicitly zero, no hexadecimal-point character appears. | 279.Xr localeconv 3 . 280.El 281.It 282An optional decimal digit string specifying a minimum field width. 283If the converted value has fewer characters than the field width, it will 284be padded with spaces on the left (or right, if the left-adjustment 285flag has been given) to fill out 286the field width. --- 226 unchanged lines hidden (view full) --- 513.Sm off 514.Oo \- Oc Li 0x Ar h Li \&. Ar hhhp Oo \\*[Pm] Oc Ar d , 515.Sm on 516where the number of digits after the hexadecimal-point character 517is equal to the precision specification. 518If the precision is missing, it is taken as enough to exactly 519represent the floating-point number; if the precision is 520explicitly zero, no hexadecimal-point character appears. |
521This is an exact coversion of the mantissa+exponent internal | 521This is an exact conversion of the mantissa+exponent internal |
522floating point representation; the 523.Sm off 524.Oo \- Oc Li 0x Ar h Li \&. Ar hhh 525.Sm on 526portion represents exactly the mantissa; only denormalized 527mantissas have a zero value to the left of the hexadecimal 528point. 529The --- 12 unchanged lines hidden (view full) --- 542the letters 543.Dq Li ABCDEF 544(rather than 545.Dq Li abcdef ) 546to represent the hex digits, and the letter 547.Ql P 548(rather than 549.Ql p ) | 522floating point representation; the 523.Sm off 524.Oo \- Oc Li 0x Ar h Li \&. Ar hhh 525.Sm on 526portion represents exactly the mantissa; only denormalized 527mantissas have a zero value to the left of the hexadecimal 528point. 529The --- 12 unchanged lines hidden (view full) --- 542the letters 543.Dq Li ABCDEF 544(rather than 545.Dq Li abcdef ) 546to represent the hex digits, and the letter 547.Ql P 548(rather than 549.Ql p ) |
550to seperate the mantissa and exponent. | 550to separate the mantissa and exponent. |
551.It Cm C 552Treated as 553.Cm c 554with the 555.Cm l 556(ell) modifier. 557.It Cm c 558The --- 302 unchanged lines hidden --- | 551.It Cm C 552Treated as 553.Cm c 554with the 555.Cm l 556(ell) modifier. 557.It Cm c 558The --- 302 unchanged lines hidden --- |