Commit 85b5f3c1 authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed floating point debugger representation

parent 16485fbf
......@@ -548,7 +548,7 @@ String Variable::toString() const
result = Kumir::Core::fromUtf8("нет");
break;
case VT_real:
result = Kumir::Converter::sprintfReal(value().toReal(), '.', false, 0,0,0);
result = Kumir::Converter::sprintfReal(value().toReal(), '.', false, 0,-1,0);
break;
case VT_int:
result = Kumir::Converter::sprintfInt(value().toInt(), 10, 0, 0);
......@@ -577,7 +577,7 @@ String Variable::toString(int indeces[4]) const
result = Kumir::Core::fromUtf8("нет");
break;
case VT_real:
result = Kumir::Converter::sprintfReal(value(indeces).toReal(), '.', false, 0,0,0);
result = Kumir::Converter::sprintfReal(value(indeces).toReal(), '.', false, 0,-1,0);
break;
case VT_int:
result = Kumir::Converter::sprintfInt(value(indeces).toInt(), 10, 0, 0);
......
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