Fix some errors in the display of the java/scilab type object 20/1520/2
Sylvestre Ledru [Sat, 31 Jul 2010 18:43:05 +0000 (20:43 +0200)]
Change-Id: I7797c14f51433ef1d0eebc6b4c1f0ca8c6445906

scilab/modules/types/src/java/org/scilab/modules/types/scilabTypes/ScilabDouble.java
scilab/modules/types/src/java/org/scilab/modules/types/scilabTypes/ScilabInteger.java

index 706d12d..b48d25f 100644 (file)
@@ -191,7 +191,7 @@ public class ScilabDouble implements ScilabType {
                                if (isReal()) {
                                        result.append(getRealPart()[i][j]);
                                } else {
-                                       result.append(getRealPart()[i][j] + " + " + getImaginaryPart()[i][j] + " %i");
+                                       result.append(getRealPart()[i][j] + " + " + getImaginaryPart()[i][j] + " * %i");
                                }
                                if (j != getWidth() - 1) {
                                        result.append(", ");
index f92d1ab..028c7e8 100644 (file)
@@ -268,7 +268,7 @@ public class ScilabInteger implements ScilabType {
                
                
                if (isEmpty()) {
-                       result.append("int()");
+                       result.append("int([])");
                        return result.toString();
                }
                
@@ -298,9 +298,9 @@ public class ScilabInteger implements ScilabType {
                        break;
                }
 
-               result.append("(");
+               result.append("([");
                appendData(result);
-               result.append(")");
+               result.append("])");
        
                return result.toString();
        }