| 102 | } |
| 103 | |
| 104 | void fx_isNaN(txMachine* the) |
| 105 | { |
| 106 | int fpclass; |
| 107 | txNumber number = (mxArgc < 1) ? C_NAN : fxToNumber(the, mxArgv(0)); |
| 108 | mxResult->kind = XS_BOOLEAN_KIND; |
| 109 | mxResult->value.boolean = 0; |
| 110 | fpclass = c_fpclassify(number); |
| 111 | if (fpclass == C_FP_NAN) |
| 112 | mxResult->value.boolean = 1; |
| 113 | } |
| 114 | |
| 115 | void fx_parseFloat(txMachine* the) |
| 116 | { |
nothing calls this directly
no test coverage detected