MCPcopy Create free account
hub / github.com/MariaDB/server / set_fcvt

Method set_fcvt

sql/sql_string.cc:202–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201
202bool Binary_string::set_fcvt(double num, uint decimals)
203{
204 // Assert that `decimals` is small enough to fit into FLOATING_POINT_BUFFER
205 DBUG_ASSERT(decimals < DECIMAL_NOT_SPECIFIED);
206 if (alloc(FLOATING_POINT_BUFFER))
207 return true;
208 length(my_fcvt(num, decimals, Ptr, NULL));
209 return false;
210}
211
212
213bool String::set_real_with_type(double num, uint decimals, CHARSET_INFO *cs,

Callers 1

val_str_asciiMethod · 0.45

Calls 1

my_fcvtFunction · 0.85

Tested by

no test coverage detected