My last example of that post was the test case, where output as base10 can contain 'A', and hex output contains 'G'.

//echo -a $base(F.FFFFFF,16,16) or $base(F.FFFFFF,16,10) -> F.G or 15.A

I see that a long enough fraction eventually returns the next higher integer, but I wouldn't expect things like the hex F.G or the non-numeric 15.A

Edit: I'm not yet seeing any problem with allowing longer fractions at the higher bases. If it does eventually become a problem, it doesn't need to be truncated as severely as it has been. $base(999999,10,36) is a 4 digit output, so chopping the base36 fraction to 2 digits was just being too short. By allowing longer fractions in the beta, the last example using base36 no longer returns 'Z' for inputs like $base(Z.ZZZZ,36,36). But if the F.G and 15.A is by-design, then OK.

Last edited by maroon; 14/09/20 07:25 PM.