Changeset 40291 for trunk/Ohana/src/opihi/lib.shell/dvomath.c
- Timestamp:
- Dec 13, 2017, 10:53:48 AM (9 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/opihi/lib.shell/dvomath.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
trunk/Ohana/src/opihi/lib.shell/dvomath.c
r39457 r40291 29 29 unsigned int Ncstack; 30 30 cstack = isolate_elements (argc, argv, &Ncstack); 31 32 // for (i = 0; i < Ncstack; i++) { 33 // fprintf (stderr, "%d : %s\n", i, cstack[i]); 34 // } 31 35 32 36 /* generate RPN stack from cstack arguments */ … … 82 86 } else { 83 87 if (stack[0].type == ST_SCALAR_INT) { 84 sprintf (outname, "%d", stack[0].IntValue);88 sprintf (outname, OPIHI_INT_FMT, stack[0].IntValue); 85 89 } else { 86 90 sprintf (outname, "%.12g", stack[0].FltValue);
Note:
See TracChangeset
for help on using the changeset viewer.
