MCPcopy Create free account
hub / github.com/Singular/Singular / n2String

Function n2String

Singular/number2.cc:477–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475 }
476}
477char *n2String(number2 d, BOOLEAN typed)
478{
479 StringSetS("");
480 if ((d!=NULL) && (d->cf!=NULL))
481 {
482 if (typed) StringAppendS("Number(");
483 n_Write(d->n,d->cf);
484 if (typed) StringAppendS(")");
485 }
486 else StringAppendS("oo");
487 return StringEndS();
488}
489
490void n2Print(number2 d)
491{

Callers 2

n2PrintFunction · 0.85
StringMethod · 0.85

Calls 4

StringSetSFunction · 0.85
StringAppendSFunction · 0.85
n_WriteFunction · 0.85
StringEndSFunction · 0.85

Tested by

no test coverage detected