MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / setPrecision

Function setPrecision

SRC/runtime/commands/interpreter.cpp:222–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222static int
223setPrecision(ClientData clientData, Tcl_Interp *interp, Tcl_Size argc,
224 TCL_Char ** const argv)
225{
226
227 if (argc < 2) {
228 opserr << "WARNING setPrecision precision? - no precision value supplied\n";
229 return TCL_ERROR;
230 }
231 int precision;
232 if (Tcl_GetInt(interp, argv[1], &precision) != TCL_OK) {
233 opserr << "WARNING setPrecision precision? - error reading precision value "
234 "supplied\n";
235 return TCL_ERROR;
236 }
237 opserr.setPrecision(precision);
238
239 return TCL_OK;
240}
241
242const char *
243getInterpPWD(Tcl_Interp *interp)

Callers

nothing calls this directly

Calls 1

setPrecisionMethod · 0.45

Tested by

no test coverage detected