1 2 3 4 5 6 7 8 #include "[grisu3.h]"9 #include <string>10 #include <assert.h>11 12 std::string [dtoa_grisu3_string](double v)13 {14 char str[32];15 int len = [dtoa_grisu3](v, str);16 [assert](len > 0 && len < 25);17 [assert](str[len] == '\0');18 ((void)len);19 return str;20 } Go back to previous page