MCPcopy Create free account
hub / github.com/audacity/audacity / decimalFunc

Function decimalFunc

lib-src/sqlite/shell.c:4742–4751  ·  view source on GitHub ↗

** SQL Function: decimal(X) ** ** Convert input X into decimal and then back into text */

Source from the content-addressed store, hash-verified

4740** Convert input X into decimal and then back into text
4741*/
4742static void decimalFunc(
4743 sqlite3_context *context,
4744 int argc,
4745 sqlite3_value **argv
4746){
4747 Decimal *p = decimal_new(context, argv[0], 0, 0);
4748 UNUSED_PARAMETER(argc);
4749 decimal_result(context, p);
4750 decimal_free(p);
4751}
4752
4753/*
4754** Compare to Decimal objects. Return negative, 0, or positive if the

Callers

nothing calls this directly

Calls 3

decimal_newFunction · 0.85
decimal_resultFunction · 0.85
decimal_freeFunction · 0.85

Tested by

no test coverage detected