** SQL Function: decimal(X) ** ** Convert input X into decimal and then back into text */
| 4740 | ** Convert input X into decimal and then back into text |
| 4741 | */ |
| 4742 | static 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 |
nothing calls this directly
no test coverage detected