On 24.01.23 14:10, Dean Rasheed wrote:
I also think it might be useful for it to gain a couple of boolean options:

1). An option to output a signed value (defaulting to false, to
preserve the current two's complement output).

I find the existing behavior so strange, I would rather give up and invent a whole new function family with correct behavior, which could then also support octal and binary, and perhaps any base. This could be something generally named, like "convert" or "format".

2). An option to output the base prefix "0x" (which comes after the
sign, making it inconvenient for the user to add themselves).

This could also be handled with a "format"-like function.



Reply via email to