|
@@ -884,7 +884,7 @@ function variablesCode (variable_obj) {
|
|
|
case Types.REAL:
|
|
|
ret += "<- {";
|
|
|
for (let j = 0; j < temp.value.length; j++) {
|
|
|
- ret += temp.value[j].toFixed(2);
|
|
|
+ ret += parseFloat(temp.value[j]).toFixed(2);
|
|
|
if (j + 1 < temp.value.length) {
|
|
|
ret += ", ";
|
|
|
}
|
|
@@ -959,7 +959,7 @@ function variablesCode (variable_obj) {
|
|
|
ret += "{";
|
|
|
|
|
|
for (let k = 0; k < temp.columns; k++) {
|
|
|
- ret += temp.value[j][k].toFixed(2);
|
|
|
+ ret += parseFloat(temp.value[j][k]).toFixed(2);
|
|
|
|
|
|
if (k + 1 < temp.columns) {
|
|
|
ret += ", ";
|
|
@@ -1047,7 +1047,7 @@ function variablesCode (variable_obj) {
|
|
|
ret += "<- " + temp.value;
|
|
|
break;
|
|
|
case Types.REAL:
|
|
|
- ret += "<- " + temp.value.toFixed(2);
|
|
|
+ ret += "<- " + parseFloat(temp.value).toFixed(2);
|
|
|
break;
|
|
|
case Types.TEXT:
|
|
|
ret += '<- "' + temp.value + '"';
|
|
@@ -1117,7 +1117,7 @@ function globalsCode () {
|
|
|
case Types.REAL:
|
|
|
ret += "<- {";
|
|
|
for (let j = 0; j < temp.value.length; j++) {
|
|
|
- ret += temp.value[j].toFixed(2);
|
|
|
+ ret += parseFloat(temp.value[j]).toFixed(2);
|
|
|
if (j + 1 < temp.value.length) {
|
|
|
ret += ", ";
|
|
|
}
|
|
@@ -1192,7 +1192,7 @@ function globalsCode () {
|
|
|
ret += "{";
|
|
|
|
|
|
for (let k = 0; k < temp.columns; k++) {
|
|
|
- ret += temp.value[j][k].toFixed(2);
|
|
|
+ ret += parseFloat(temp.value[j][k]).toFixed(2);
|
|
|
|
|
|
if (k + 1 < temp.columns) {
|
|
|
ret += ", ";
|
|
@@ -1280,7 +1280,7 @@ function globalsCode () {
|
|
|
ret += "<- " + temp.value;
|
|
|
break;
|
|
|
case Types.REAL:
|
|
|
- ret += "<- " + temp.value.toFixed(2);
|
|
|
+ ret += "<- " + parseFloat(temp.value).toFixed(2);
|
|
|
break;
|
|
|
case Types.TEXT:
|
|
|
ret += '<- "' + temp.value + '"';
|