Changeset 6250 for trunk/Ohana/src/opihi/lib.shell/dvomath.c
- Timestamp:
- Jan 29, 2006, 9:59:45 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/dvomath.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/dvomath.c
r4689 r6250 57 57 58 58 /* evaluate operations, free stack on error */ 59 Ncstack = Nstack; 59 60 if (!evaluate_stack (stack, &Nstack)) { 60 61 if (*size == 1) DeleteVector (vec); … … 65 66 switch (*size) { 66 67 case 0: 67 sprintf (outname, "%.12g", stack[0].Float); 68 if (Ncstack == 1) { 69 /* use exact input work */ 70 sprintf (outname, "%s", stack[0].name); 71 } else { 72 sprintf (outname, "%.12g", stack[0].Float); 73 } 68 74 break; 69 75
Note:
See TracChangeset
for help on using the changeset viewer.
