Changeset 20936 for trunk/Ohana/src/opihi/lib.shell/dvomath.c
- Timestamp:
- Dec 7, 2008, 3:31:01 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/dvomath.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/dvomath.c
r14708 r20936 76 76 case 0: 77 77 if (Ncstack == 1) { 78 /* use exact input work*/79 sprintf (outname, "%s", stack[0].name);78 /* use exact input word */ 79 sprintf (outname, "%s", stack[0].name); 80 80 } else { 81 sprintf (outname, "%.12g", stack[0].Float); 81 if (stack[0].type == 's') { 82 sprintf (outname, "%d", stack[0].IntValue); 83 } else { 84 sprintf (outname, "%.12g", stack[0].FltValue); 85 } 82 86 } 83 87 break;
Note:
See TracChangeset
for help on using the changeset viewer.
