diff options
author | Abigail <abigail@abigail.be> | 2000-08-15 04:06:38 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-18 02:02:12 +0000 |
commit | 6b4667fc1b974ce7a433cfefaaba43c525667a61 (patch) | |
tree | 3d2bbafa79dc9138513e6e3539bd3b4b1098ed43 /pod/perlguts.pod | |
parent | 2b899b4a6ad0a96c47e1bf92850882725a1127e9 (diff) | |
download | perl-6b4667fc1b974ce7a433cfefaaba43c525667a61.tar.gz |
Introduce NVef, NVff, and NVgf, use the middle one.
(helps for lib/peek + Linux + long doubles) Reported in
Subject: [ID 20000814.005] Not OK: perl v5.6.0 on i686-linux-64int 2.2.13
Message-Id: <20000815040638.8524.qmail@foad.org>
(note: the lib/complex failure has not yet been addressed)
p4raw-id: //depot/perl@6685
Diffstat (limited to 'pod/perlguts.pod')
-rw-r--r-- | pod/perlguts.pod | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/pod/perlguts.pod b/pod/perlguts.pod index f2b4b909b8..b1cd636fbe 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -1877,18 +1877,26 @@ This function isn't exported out of the Perl core. If you edit F<embed.pl>, you will need to run C<make regen_headers> to force a rebuild of F<embed.h> and other auto-generated files. -=head2 Formatted Printing of IVs and UVs +=head2 Formatted Printing of IVs, UVs, and NVs -If you are printing IVs or UVs instead of the stdio(3) style formatting -codes like C<%d> you should use the following macros for portability +If you are printing IVs, UVs, or NVS instead of the stdio(3) style +formatting codes like C<%d>, C<%ld>, C<%f>, you should use the +following macros for portability IVdf IV in decimal UVuf UV in decimal UVof UV in octal UVxf UV in hexadecimal + NVef NV %e-like + NVff NV %f-like + NVgf NV %g-like -For example: printf("IV is %"IVdf"\n", iv); That will expand -to whatever is the correct format for the IVs. +These will take care of 64-bit integers and long doubles. +For example: + + printf("IV is %"IVdf"\n", iv); + +The IVdf will expand to whatever is the correct format for the IVs. =head2 Source Documentation |