1 ################################################################################
5 ## $Date: 2010/03/07 13:15:48 +0100 $
7 ################################################################################
9 ## Version 3.x, Copyright (C) 2004-2010, Marcus Holland-Moritz.
10 ## Version 2.x, Copyright (C) 2001, Paul Marquess.
11 ## Version 1.x, Copyright (C) 1999, Kenneth Albanowski.
13 ## This program is free software; you can redistribute it and/or
14 ## modify it under the same terms as Perl itself.
16 ################################################################################
25 # if IVSIZE == LONGSIZE
32 # if IVSIZE == INTSIZE
43 # if defined(USE_LONG_DOUBLE) && defined(HAS_LONG_DOUBLE) && \
44 defined(PERL_PRIfldbl) && { VERSION != 5.6.0 }
45 /* Not very likely, but let's try anyway. */
46 # define NVef PERL_PRIeldbl
47 # define NVff PERL_PRIfldbl
48 # define NVgf PERL_PRIgldbl
62 Perl_croak(aTHX_ "%.20" NVgf "\n", num);
66 my $num = 1.12345678901234567890;
68 eval { Devel::PPPort::croak_NVgf($num) };
69 ok($@ =~ /^1.1234567890/);