| 113 | } |
| 114 | |
| 115 | void fx_parseFloat(txMachine* the) |
| 116 | { |
| 117 | if (mxArgc < 1) { |
| 118 | mxResult->value.number = C_NAN; |
| 119 | mxResult->kind = XS_NUMBER_KIND; |
| 120 | return; |
| 121 | } |
| 122 | fxToString(the, mxArgv(0)); |
| 123 | mxResult->kind = XS_NUMBER_KIND; |
| 124 | mxResult->value.number = fxStringToNumber(the, mxArgv(0)->value.string, 0); |
| 125 | } |
| 126 | |
| 127 | void fx_parseInt(txMachine* the) |
| 128 | { |
nothing calls this directly
no test coverage detected