K Lange
K Lange
We also need rules to generate the codec libraries: https://github.com/kuroko-lang/kuroko/blob/master/Makefile#L129-L133
@heatd If you want this in the final release of 1.4, we need to figure out the codec module stuff.
There is currently no implementation of the builtin `round` function, nor is there a binding to the libm `round` function in the `math` module. Some references for how Python does...
With the new functionality in `float.__format__`, you can now use it to implement decimal rounding through the `f` formatter. For example, to round to 5 decimal digits past the radix...
Can not reproduce? ``` >>> math.floor(0.1) == math.ceil(0.1) => False >>> math.floor(0.9) == math.ceil(0.9) => False >>> math.floor(0.1) => 0 >>> math.ceil(0.1) => 1 >>> math.ceil(0.9) => 1 >>> math.floor(0.9)...
Using Kuroko with locales other than `C` is currently unsupported - `strtod` is used to parse floats. Please confirm that you get the misparse of `0.5` as `0.0` in the...
This should not normally be an issue when running scripts, but rline calls `setlocale`: https://github.com/kuroko-lang/kuroko/blob/master/src/vendor/rline.c#L2433 If you wish to use the repl with a locale other than `C`, please disable...
> Perhaps rline should not call `setlocale()` when it is not supported? rline needs to run `setlocale` or `wcwidth` will return nonsensical values for the widths of characters, and it...
Changing the title of this issue to reflect the underlying problem, so it can be more directly addressed. Given that I want Kuroko to be usable in an embedded environment...
Possibly. Checking the radix symbol in a portable manner is slightly tricky, but a quick hack might be to do `if (strtod("0.5",NULL) != 0.5) setlocale(LC_ALL, "C.UTF-8");`, just in rline, and...