Through base 29.

\define yobazic(num,base,result:"")
<$list filter="[<__num__>remainder<__base__>add[1]]" variable=remidx>
<$list filter="[<__num__>divide<__base__>trunc[]]" variable=num>
<$list filter="[enlist<syms>nth<remidx>addsuffix<__result__>]" variable=
"result">
<$list filter="[<num>!regexp[^0$]]" emptyMessage=<<result>>>
 <$macrocall $name=yobazic num=<<num>> base="$base$" result=<<result>>/>
</$list></$list></$list></$list>
\end
\define basewhatever(num,base)
<$vars
syms="0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v x y z 
ä ß ĉ "
>
<<yobazic $num$ $base$>>
</$vars>
\end

<<basewhatever 1025 16>>



On Wednesday, October 9, 2019 at 7:11:46 AM UTC-7, @TiddlyTweeter wrote:
>
> Thanks Mark S. ...
>  
>
>> Except for base 16, I can't imagine it would get much use though.
>
>
> RIGHT.  Used, not. Info, yes. 
>
> Its partly about being able to document what IS NOT used by everyone else.
>
> That is largely my interest in it. 
>
> TT
>
>
> On Wednesday, 9 October 2019 15:56:23 UTC+2, Mark S. wrote:
>>
>> I'm sure I've written a base-anything routine at some time in my life.
>>
>> Now that TW has some math tools, I imagine it should be possible to write 
>> a macro that handles up to base 36. The limit being the number of symbols 
>> you have to work with. 
>> I'm thinking 26 letters plus ten digits. But of course if you allowed 
>> mixed case or non-latin characters, you could extend that.
>>
>> Except for base 16, I can't imagine it would get much use though.
>>
>>
>>
>> On Wednesday, October 9, 2019 at 4:58:11 AM UTC-7, @TiddlyTweeter wrote:
>>>
>>> TonyM wrote:
>>>>
>>>> Very interesting base 27. 
>>>>
>>>
>>> I think it is. 
>>>
>>> Bio-bit: when I went to school I was part of a social experiment in UK 
>>> on what was called "Modern Maths". It died. And I still can't do long 
>>> division in my mind as they overlooked it. But you were taught young how to 
>>> count in any base.
>>>
>>> Consequently I can think in bases easily, and topology is a doddle for 
>>> me.
>>>
>>> I often thought about trying to create a wiki concerned with variant 
>>> cultural counting systems. 
>>> My issue is I can't easily find a way to convert my knowledge so you 
>>> could have, say, a "base-17" calculator in TW. 
>>>
>>> I think it could be interesting!
>>>
>>> Best wishes
>>> TT
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6e6bc82d-359e-423c-bc49-afe766876ccb%40googlegroups.com.

Reply via email to