Commit f25a213d authored by Kristof Szabados's avatar Kristof Szabados
Browse files

modfl can work with long double.


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent 316fa309
......@@ -1715,9 +1715,9 @@ void ValueType::printToFile(FILE * file) const {
if (lower == -DBL_MAX) {
fputs("-infinity", file);
} else {
double intpart = 0;
double fracpart = 0;
fracpart = modf(lower, &intpart);
long double intpart = 0;
long double fracpart = 0;
fracpart = modfl(lower, &intpart);
if (fracpart == 0) {
fprintf(file, "%.1Lf", lower);
} else {
......@@ -1733,9 +1733,9 @@ void ValueType::printToFile(FILE * file) const {
if (upper == DBL_MAX) {
fputs("infinity", file);
} else {
double intpart = 0;
double fracpart = 0;
fracpart = modf(upper, &intpart);
long double intpart = 0;
long double fracpart = 0;
fracpart = modfl(upper, &intpart);
if (fracpart == 0) {
fprintf(file, "%.1Lf", upper);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment