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

Method normalNumber

libpolys/tests/cxxtest/ValueTraits.cpp:124–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124 void ValueTraits<const double>::normalNumber( double t )
125 {
126 char *s = doNegative( t );
127 s = doubleToString( t, s );
128 s = copyString( s, "." );
129 for ( unsigned i = 0; i < DIGITS_ON_RIGHT; ++ i )
130 s = numberToString( (unsigned)(t *= BASE) % BASE, s );
131 }
132
133 char *ValueTraits<const double>::doubleToString( double t, char *s, unsigned skip, unsigned max )
134 {

Callers

nothing calls this directly

Calls 2

copyStringFunction · 0.85
numberToStringFunction · 0.85

Tested by

no test coverage detected