| 705 | } |
| 706 | |
| 707 | void fx_Math_trunc(txMachine* the) |
| 708 | { |
| 709 | mxNanResultIfNoArg; |
| 710 | fxToNumber(the, mxArgv(0)); |
| 711 | mxResult->kind = XS_NUMBER_KIND; |
| 712 | mxResult->value.number = c_trunc(mxArgv(0)->value.number); |
| 713 | fx_Math_toInteger(the); |
| 714 | } |
| 715 | |
| 716 | void fx_Math_toInteger(txMachine* the) |
| 717 | { |
nothing calls this directly
no test coverage detected