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

Function setPrecision

SRC/tcl/commands.cpp:8936–8952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8934
8935
8936int
8937setPrecision(ClientData clientData, Tcl_Interp *interp, int argc, TCL_Char **argv)
8938{
8939
8940 if (argc < 2) {
8941 opserr << "WARNING setPrecision precision? - no precision value supplied\n";
8942 return TCL_ERROR;
8943 }
8944 int precision;
8945 if (Tcl_GetInt(interp, argv[1], &precision) != TCL_OK) {
8946 opserr << "WARNING setPrecision precision? - error reading precision value supplied\n";
8947 return TCL_ERROR;
8948 }
8949 opserr.setPrecision(precision);
8950
8951 return TCL_OK;
8952}
8953
8954
8955int

Callers

nothing calls this directly

Calls 1

setPrecisionMethod · 0.45

Tested by

no test coverage detected