mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/bigdecimal/bigdecimal.c (VPrint, VpToString): fix format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a236e7348b
commit
f20f30fc07
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Wed Sep 29 12:35:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/bigdecimal/bigdecimal.c (VPrint, VpToString): fix format.
|
||||||
|
|
||||||
Wed Sep 29 12:31:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed Sep 29 12:31:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/rdoc/known_classes.rb (RDoc::KNOWN_CLASSES): add Encoding.
|
* lib/rdoc/known_classes.rb (RDoc::KNOWN_CLASSES): add Encoding.
|
||||||
|
|
|
@ -3880,7 +3880,7 @@ VPrint(FILE *fp, const char *cntl_chr, Real *a)
|
||||||
m /= 10;
|
m /= 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
nc += fprintf(fp, "E%"PRIdVALUE, VpExponent10(a));
|
nc += fprintf(fp, "E%"PRIdSIZE, VpExponent10(a));
|
||||||
} else {
|
} else {
|
||||||
nc += fprintf(fp, "0.0");
|
nc += fprintf(fp, "0.0");
|
||||||
}
|
}
|
||||||
|
@ -4077,7 +4077,7 @@ VpToString(Real *a, char *psz, size_t fFmt, int fPlus)
|
||||||
shift /= 10;
|
shift /= 10;
|
||||||
}
|
}
|
||||||
while(psz[-1]=='0') *(--psz) = 0;
|
while(psz[-1]=='0') *(--psz) = 0;
|
||||||
sprintf(psz, "E%"PRIdVALUE, ex);
|
sprintf(psz, "E%"PRIdSIZE, ex);
|
||||||
if(fFmt) VpFormatSt(pszSav, fFmt);
|
if(fFmt) VpFormatSt(pszSav, fFmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue