fix for i

This commit is contained in:
serso 2011-10-06 23:33:30 +04:00
parent 647eb27004
commit 06f5d549a9

View File

@ -20,11 +20,9 @@ class FromJsclTextProcessor implements TextProcessor {
@NotNull
@Override
public String process(@NotNull String s) throws ParseException {
String result = null;
public String process(@NotNull String result) throws ParseException {
try {
result = String.valueOf(round(s));
result = String.valueOf(round(result));
} catch (NumberFormatException e) {
if (result.contains(MathType.IMAGINARY_NUMBER_DEF)) {
try {