diff options
author | Steve Peters <steve@fisharerojo.org> | 2005-12-03 03:30:00 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2005-12-03 03:30:00 +0000 |
commit | 43eaf59d25f22137101201b9df220432655a6cc2 (patch) | |
tree | a696ce2b54f5636550d6dd704b71d05602a17228 /util.c | |
parent | 23c2666825f6d4396328e332025722d15959b207 (diff) | |
download | perl-43eaf59d25f22137101201b9df220432655a6cc2.tar.gz |
Upgrade to version-0.50
p4raw-id: //depot/perl@26246
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4298,7 +4298,7 @@ Perl_vnumify(pTHX_ SV *vs) { digit = SvIV(*av_fetch(av, i, 0)); if ( width < 3 ) { - const int denom = (int)pow(10,(3-width)); + const int denom = (width == 2 ? 10 : 100); const div_t term = div((int)PERL_ABS(digit),denom); Perl_sv_catpvf(aTHX_ sv, "%0*d_%d", width, term.quot, term.rem); } |