forked from bblanchon/ArduinoJson
Set a default value for DIGITS
This commit is contained in:
@ -46,7 +46,7 @@ namespace ArduinoJson
|
||||
content.asString = value;
|
||||
}
|
||||
|
||||
template<int DIGITS>
|
||||
template<int DIGITS=2>
|
||||
void set(double value)
|
||||
{
|
||||
printToImpl = &printDoubleTo<DIGITS>;
|
||||
|
@ -73,12 +73,12 @@ namespace JsonGeneratorTests
|
||||
write("\t");
|
||||
assertResultIs("\"\\t\"");
|
||||
}
|
||||
/*
|
||||
|
||||
TEST_METHOD(DoubleDefaultDigits)
|
||||
{
|
||||
write(3.14159265358979323846);
|
||||
assertResultIs("3.14");
|
||||
}*/
|
||||
}
|
||||
|
||||
TEST_METHOD(DoubleZeroDigits)
|
||||
{
|
||||
|
Reference in New Issue
Block a user