base: print() functions for floating point types

Fixes #2055
This commit is contained in:
Johannes Schlatow
2016-08-09 16:54:13 +02:00
committed by Christian Helmuth
parent f81d4cfbbb
commit acd2a40076
3 changed files with 52 additions and 0 deletions

View File

@ -75,6 +75,15 @@ void Genode::print(Output &output, long long value)
out_signed<long long>(value, 10, [&] (char c) { output.out_char(c); });
}
void Genode::print(Output &output, float value)
{
out_float<float>(value, 10, 3, [&] (char c) { output.out_char(c); });
}
void Genode::print(Output &output, double value)
{
out_float<double>(value, 10, 6, [&] (char c) { output.out_char(c); });
}
void Genode::print(Output &output, Hex const &value)
{