Commit f81f9a88 authored by Yeolar's avatar Yeolar Committed by Facebook Github Bot

toAppend support DoubleToStringConverter::SHORTEST_SINGLE (#928)

Summary:
toAppend support DoubleToStringConverter::SHORTEST_SINGLE for float type.
Pull Request resolved: https://github.com/facebook/folly/pull/928

Reviewed By: yfeldblum

Differential Revision: D9790564

Pulled By: Orvid

fbshipit-source-id: b38d6542518aa0ed7f2b0e222e9870bb5f3a51e5
parent bb4adabb
......@@ -693,6 +693,9 @@ toAppend(
case DoubleToStringConverter::SHORTEST:
conv.ToShortest(value, &builder);
break;
case DoubleToStringConverter::SHORTEST_SINGLE:
conv.ToShortestSingle(value, &builder);
break;
case DoubleToStringConverter::FIXED:
conv.ToFixed(value, int(numDigits), &builder);
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment