MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / my_decimal_round

Function my_decimal_round

sql/my_decimal.h:337–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335
336
337inline
338int my_decimal_round(uint mask, const my_decimal *from, int scale,
339 bool truncate, my_decimal *to)
340{
341 return check_result(mask, decimal_round(from, to, scale,
342 (truncate ? TRUNCATE : HALF_UP)));
343}
344
345
346inline

Callers 5

val_str_asciiMethod · 0.85
val_decimalMethod · 0.85
val_intMethod · 0.85
val_strMethod · 0.85

Calls 2

check_resultFunction · 0.85
decimal_roundFunction · 0.85

Tested by

no test coverage detected