MCPcopy Create free account
hub / github.com/Geant4/geant4 / GetNewUnitValue

Method GetNewUnitValue

source/intercoms/src/G4UIcmdWithADoubleAndUnit.cc:108–118  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

106
107// --------------------------------------------------------------------
108G4double G4UIcmdWithADoubleAndUnit::GetNewUnitValue(const char* paramString)
109{
110 G4double vl;
111 char unts[30];
112
113 std::istringstream is(paramString);
114 is >> vl >> unts;
115 G4String unt = unts;
116
117 return ValueOf(unt);
118}
119
120// --------------------------------------------------------------------
121G4String G4UIcmdWithADoubleAndUnit::ConvertToStringWithBestUnit(G4double val)

Callers 3

SetNewValueMethod · 0.45
SetNewValueMethod · 0.45
SetNewValueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected