MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ToStringBase

Method ToStringBase

extern/ttmath/ttmathint.h:1309–1321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1307 */
1308 template<class string_type>
1309 void ToStringBase(string_type & result, uint b = 10) const
1310 {
1311 if( IsSign() )
1312 {
1313 Int<value_size> temp(*this);
1314 temp.Abs();
1315 temp.UInt<value_size>::ToStringBase(result, b, true);
1316 }
1317 else
1318 {
1319 UInt<value_size>::ToStringBase(result, b, false);
1320 }
1321 }
1322
1323 /*!
1324 this method converts the value to a string with a base equal 'b'

Callers 1

toStringMethod · 0.45

Calls 1

AbsMethod · 0.80

Tested by

no test coverage detected